summaryrefslogtreecommitdiff
path: root/include/netlink
Commit message (Collapse)AuthorAgeFilesLines
* Add nl_rate2str()Thomas Graf2011-06-091-0/+6
|
* Add rtnl_tc_data_check()Thomas Graf2011-06-091-0/+2
| | | | | Behaves like rtnl_tc_data() but verifies that the traffic control object is of the expected type.
* Provide silent variation of nl_cache_require()Thomas Graf2011-05-111-0/+1
| | | | | Use in addr and tc layer to avoid warnings being printed if no cache is available.
* addr: store link object and provide rtnl_addr_get()Thomas Graf2011-05-031-1/+7
| | | | | | | | stores rtnl_link object in address if cache is availble. Provide access via rtnl_addr_get_link() and rtnl_addr_set_link(). Add rtnl_addr_get() which searches a address cache for an address matching ifindex and local address.
* Add missing declaration of rtnl_tc_get_link()Thomas Graf2011-04-211-0/+1
|
* Expose <netlink/route/link/inet.h>Thomas Graf2011-04-201-1/+1
|
* export rtnl_link_add() and rtnl_link_build_add_request()Thomas Graf2011-04-151-1/+4
|
* Improve rtnl_link_change() behaviourThomas Graf2011-04-131-1/+2
| | | | | | | | | | | | - avoid unncessary name change requests The kernel does not check if the specified IFNAME is different from the current name. It assumes that if IFNAME and ifindex are both specified, a name change is requested. Therefore avoid specyfing IFNAME if ifindex is provided and original and new name are identical. - move link building to own function (to allow link add later on) - error if immutable changes have been made - better documentation
* API to issue direct GET requests to the kernelThomas Graf2011-04-112-0/+12
| | | | | | | | | Provide nl_pickup() to pick up an answer from a netlink request and parse it using the supplied parser. Add rtnl_link_get_kernel() which sends an RTM_GETLINK to the kernel to fetch a single link directly from the kernel. This can be faster than dumping the whole table, especially if lots of links are configured.
* link: Provide rtnl_link_delete() to delete virtual linksThomas Graf2011-04-101-0/+4
| | | | | Takes a link object and extracts ifindex and name to build a deletion request message to delete virtual network links.
* link: Make return and argument type matchThomas Graf2011-04-101-2/+2
|
* Provide nl_cache_set_arg{1,2}() to specify cache argsThomas Graf2011-04-101-0/+2
| | | | | Added based on a RFE. This is required if allocation and (re)filling is to be splitted.
* Provide nl_object_dump_buf() to easily dump to buffersThomas Graf2011-04-101-0/+1
|
* Provide TC_HANDLE(maj, min) macro to generate tc handlesThomas Graf2011-04-011-0/+6
|
* trafic class/classifer API improvements and documentationThomas Graf2011-03-292-30/+35
| | | | | | | - removed dead functions in header files - deprecated rtnl_class_foreach_*() functions due to their missing handling possibility of OOM situations - improved API documentation
* Qdisc API improvements and documentationThomas Graf2011-03-251-10/+19
| | | | | | | | | | | | | | | Deprecated the functions rtnl_qdisc_change() and rtnl_qdisc_build_change_request() for their lack of being able to specify flags. The new functions rtnl_qdisc_update() and rtnl_qdisc_build_update_request() may be used instead. The old functions are still available though. However, rtnl_qdisc_update() no longer implies NLM_F_REPLACE, it has to specified implicitely to allow updating a qdisc without risking to replace another qdisc. Included detailed documentation of qdisc addition/update/deletion. Introduced APPBUG() macro to let application developer know of API abuse.
* Add nl_send_sync()Thomas Graf2011-03-251-0/+1
| | | | | Function which sends message using nl_send_auto(), frees the message and waits for ACK/error message (if auto-ack is not disabled).
* Deprecate rtnl_qdisc_foreach_child() and rtnl_qdisc_foreach_cls()Thomas Graf2011-03-241-2/+3
| | | | | | | | | Their usage is not completely safe, it is not possible to handle the out of memory situation of the allocate filter. It is very unlikely for this to cause any problem though. The functions are still accessible but gcc will warn about their deprecation.
* Cleanup <netlink/route/qdisc.h>Thomas Graf2011-03-241-11/+9
| | | | | - remove dead prototypes - reformat
* Add NLE_NODEV errorThomas Graf2011-03-241-1/+2
|
* add missing nl_cache_search in cache.hDaniel Walter2011-03-221-0/+2
| | | | fix missing declaration of nl_cache_search
* Documentation updatesThomas Graf2011-03-221-0/+24
| | | | Mostly killing doxygen warnings, some doc updates to caching
* rename sch -> qdiscThomas Graf2011-03-219-0/+0
|
* Unified TC APIThomas Graf2011-03-2115-299/+203
| | | | | | | | Finally got rid of all the qdisc/class/cls code duplication in the tc module API. The API takes care of allocation/freeing the tc object specific data. I hope I got it right this time.
* provide function to retrieve htb rateThomas Graf2011-03-171-0/+1
|
* Make struct nl_object public, NLHDR_COMMON has been public anywayThomas Graf2011-03-171-0/+6
|
* Provide numeric version definesThomas Graf2011-03-161-1/+6
|
* Fix function nfnl_ct_del nameLaurent Defert2011-03-161-1/+1
| | | | | This function is named nfnl_nl_del in lib/netfilter/ct.c, while it was declared nfnl_ct_delete in the header.
* Include <linux/pkt_cls.h> and <linux/pkt_sched.h> in <netlink/route/tc.h> ↵Thomas Graf2011-03-161-0/+2
| | | | for convenience
* prefix ipv6 link statistics identifiers with IP6Thomas Graf2011-03-161-30/+30
|
* use linux/netlink.h instead of netlink/netlink-kernel.hThomas Graf2011-03-161-0/+9
|
* Tons of documentationThomas Graf2010-11-271-24/+112
|
* addr: hide nl_addr_destroy()Thomas Graf2010-11-261-4/+1
| | | | everyone should use nl_addr_put()
* rename NL_AUTO_PID to NL_AUTO_PORTThomas Graf2010-11-231-5/+8
| | | | Old name is kept for compatibility.
* Rename nlmsg_for_each_msg() to nlmsg_for_each()Thomas Graf2010-11-231-4/+6
| | | | | Also put remaining variable on local stack instead of requiring the user to supply it. Old interface is kept for compatibility.
* nl: rename nlmsg_msg_size() to nlmsg_size(), nlmsg_len() -> nlmsg_datalen()Thomas Graf2010-11-221-9/+7
| | | | The old symbols are left around for compatibility.
* rename nl_send_auto_complete() -> nl_send_auto(), nl_auto_complete -> ↵Thomas Graf2010-11-181-1/+4
| | | | | | nl_complete_msg() Old symbols left to maintain backwards compatibility
* socket: constify interfaceThomas Graf2010-11-181-6/+6
|
* New function nl_size2str()Thomas Graf2010-11-171-0/+1
|
* Rename nl_get_hz() to nl_get_user_hz() to indicate it's not the in-kernel HZ ↵Thomas Graf2010-11-171-1/+1
| | | | value
* link: AF_INET link moduleThomas Graf2010-11-162-0/+38
| | | | | | | | Note: The code for this is not upstream yet. Extends the link api to allow address family modules to fill a link message and implements a AF_INET address family link module which uses the new interface.
* link: Support for IFLA_AF_SPECThomas Graf2010-11-131-0/+5
| | | | | | | | This feature isn't upstream yet. It's required to test a patch in my local tree. Makes the link parser understand IFLA_AF_SPEC and call the address family specific parser.
* Add support for per interface ICMPv6 statisticsThomas Graf2010-11-111-0/+4
|
* Extend rtnl_link_alloc_cache() to support address familiesThomas Graf2010-11-112-4/+35
| | | | | | | Adds a family argument which allows to request link dumps for a certain address family. This allows to f.e. dump ipv6 specific statistics and data. nl-link-list --family inet6
* link/api: Improve API documentation.Thomas Graf2010-11-111-4/+9
|
* link/api: Convert link info ops to use nl_list_headThomas Graf2010-11-111-2/+2
| | | | | rtnl_link_info_ops_lookup() now returns a pointer with refcnt increment, you must return it using rtnl_link_info_ops_put()
* link: API for address family specific link dataThomas Graf2010-11-112-55/+119
| | | | | | Introduces a new API to handle address familiy specific link data such as IFLA_PROTINFO. It provides entry hooks for parsing IFLA_PROTINFO attributes and allows to include the parsed data when a link object is dumped.
* link: Support IFLA_NUM_VF attributeThomas Graf2010-11-111-0/+2
| | | | | | - parses attribute if available - provides API to access value rtnl_link_get_num_vf(link, num_vf)
* link: Support IFLA_IFALIAS attributeThomas Graf2010-11-112-2/+6
| | | | | | | | - parse IFLA_IFALIAS if available - provides API to access/change ifalias rtnl_link_get_ifalias(link) rtnl_link_set_ifalias(link, alias) - extends nl-link-set to test functionality
* pktloc: support to specify a shift operator for packet locationsThomas GraF2010-11-041-0/+1
| | | | no users yet though.