path: root/include/netlink-types.h
AgeCommit message (Collapse)AuthorFilesLines
2010-10-13add user data to change_func_t for cachesAndreas Fett1-0/+1
the patch below adds the possibility to pass user data to callbacks of type change_func_t when using the nl_cache_mngr_* family of functions. If there is any better way to do this, without duplicating the code in cache_mngr.c please let me know.
2009-09-02- Reworked the classifier interface.Thomas Graf1-3/+29
- Added initial ematch support - Added support for the basic classifier - Added support for the cgroup classifier
2008-10-20Add socket flag NL_NO_AUTO_ACK to allow disabling auto ACKSThomas Graf1-0/+1
2008-10-15Use 16bit ints for classifier prio/protocolThomas Graf1-2/+2
2008-10-14Replace NL_KEEP code with proper message reference countingThomas Graf1-0/+1
Adds reference counting to netlink messages so callbacks can hold on to a message without using the broken keep message flag.
2008-06-17Fix compile errors when linking against libnl-genlThomas Graf1-9/+0
2008-05-15Rename struct nl_handle to struct nl_sockThomas Graf1-14/+14
The idea of a common handle is long revised and only misleading, nl_handle really represents a socket with some additional action handlers assigned to it. Alias for nl_handle is kept for backwards compatibility.
2008-04-30New netem funtionality and TBF fixTad Kollar1-0/+14
New netem-related functionality: Added ability to save new settings to the kernel. In netem.c, the netem_get_opts() stub has been replaced with netem_build_msg() which manipulates the nl_msg data directly and returns an error code instead of a new nl_msg. Modifications to qdisc_build() in qdisc.c and struct rtnl_qdisc_ops were necessary for this. Added support for getting/setting corruption probability/correlation. Added support for setting a delay distribution. Fixed tbf_msg_parser() to call tbf_alloc() instead of tbf_qdisc() to prevent a seg fault.
2008-04-29Big routing code rework (API/ABI BREAK!)Thomas Graf1-15/+8
Adds all missing routing attributes and brings the routing related code to a working state. In the process the API was broken several times with the justification that nobody is using this code yet. The changes include new example code which is also a prototype for how plain CLI tools could look like to control routes.
2008-02-07[LIBNL]: Split up nfnetlink_log into log and msg objectsPatrick McHardy1-18/+31
Split the nfnetlink_log code into two seperate objects, "netfilter/log" to represent logging instances and "netfilter/log_msg" to represent log messages. Also perform some function name unification for consistency with other libnl object types, mainly renaming nfnl_log_build_*_msg to nfnl_log_build_*_request. This changes the API in an incompatible way, but since this feature is new and the libnl netfilter headers haven't been installed so far, there shouldn't be any users affected by this. Signed-off-by: Patrick McHardy <>
2008-02-07[LIBNL]: nfnetlink_log: support NUFLA_GID attributePatrick McHardy1-0/+1
The NUFLA_GID attribute (currently only in net-2.6.25) contains the gid of the sending process for locally generated packets. Signed-off-by: Patrick McHardy <>
2008-02-07[LIBNL]: Add nfnetlink_queue supportPatrick McHardy1-0/+30
Signed-off-by: Patrick McHardy <>
2008-01-14Fix stale data pointers when constructing messagesThomas Graf1-0/+1
Patrick McHardy reported a problem where pointers to the payload of a netlink message as returned by f.e. the nesting helpers become stale when the payload data chunk is reallocated. In order to avoid further problems, the payload chunk is no longer extended on the fly. Instead the allocation is made during netlink message object allocation time with a default size of a page which should be fine for the majority of all users. Additionally the functions nlmsg_alloc_size() and nlmsg_set_default_size() have been added to allocate messages of a particular length and to modify the default message size.
2008-01-08Link info interface and vlan supportThomas Graf1-0/+3
Adds an external interface to implement link info types and implements the type vlan.
2007-12-19Support link operstate and linkmodeThomas Graf1-0/+2
2007-09-18Allow filtering by name for conntrack status flagsPhilip Craig1-0/+1
2007-09-17Export interface to define cachesThomas Graf1-64/+0
This interface was internal so far which required all code defining caches to be compiled with the sources available. In order to simplify the interface, the co_msg_parser prototype was changed to take the struct nl_parser_param directly instead of a void *. It used to be void * because the co_msg_parser was directly passed as the NL_CB_VALID callback function.
2007-09-15Export interface to define objectsThomas Graf1-50/+0
This interface was internal so far which required all code defining objects to be compiled with the sources available. This change exposes struct nl_object_ops which seems safe as it is not supposed to be embedded in other structures. Patch contains extensive documentation to help with the creation of own object implementations.
2007-09-15Initial importaosp-new/nougat-mr1-arcThomas Graf1-0/+865