summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Print debugging info while iterating a cache based on a filterThomas Graf2011-03-171-2/+9
|
* Fix off-by-one when reading IFLA_INET6_CONF and IFLA_INET6_STATSThomas Graf2011-03-171-2/+2
|
* __nlmsg_alloc(): Guarantee minimal message size of at least the headerThomas Graf2011-03-171-0/+3
|
* Add missing argument in rtnl_link_change exampleMiguel Di Ciurcio Filho2011-03-161-1/+1
| | | | Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
* allowing silent rules in buildReuben Hawkins2011-03-161-4/+4
|
* prefix ipv6 link statistics identifiers with IP6Thomas Graf2011-03-162-65/+67
|
* addr: hide nl_addr_destroy()Thomas Graf2010-11-261-25/+14
| | | | everyone should use nl_addr_put()
* nl_recv(): Zero out sockaddr in case the caller forgotThomas Graf2010-11-221-0/+2
|
* nl_recv(): Make passing creds pointer optionalThomas Graf2010-11-221-2/+4
|
* nl: rename nlmsg_msg_size() to nlmsg_size(), nlmsg_len() -> nlmsg_datalen()Thomas Graf2010-11-223-15/+47
| | | | The old symbols are left around for compatibility.
* Documentation updatesThomas Graf2010-11-191-487/+0
| | | | | | | | | | | - moved documentation from lib/doc.c to doc/src/ - splitted pages into separate files - worked over core sections, explaining the receiving and sending behaviour in much more details including the the available mechanisms to customize the behaviour - updated the html stylesheet file for increased readability, probably needs some doxygen patching to achieve what I am looking for. - enabled call graphs, not expanded by default
* Inherit return code of NL_CB_MSG_OUT in nl_sendmsg()Thomas Graf2010-11-181-2/+2
| | | | | | If NL_CB_MSG_OUT() returns anything != NL_OK, return that value to let any caller of nl_sendmsg() know that the message has not been sent.
* rename nl_send_auto_complete() -> nl_send_auto(), nl_auto_complete -> ↵Thomas Graf2010-11-182-5/+18
| | | | | | nl_complete_msg() Old symbols left to maintain backwards compatibility
* only perform automatic sequence checking if auto-ack mode is enabledThomas Graf2010-11-181-7/+11
|
* Don't build doc.c, there is no real code in itThomas Graf2010-11-181-1/+1
|
* socket: constify interfaceThomas Graf2010-11-181-6/+6
|
* constify struct trans_tblThomas Graf2010-11-1724-47/+47
|
* link/inet6: pretty printingThomas Graf2010-11-171-12/+49
|
* New function nl_size2str()Thomas Graf2010-11-171-0/+50
|
* Rename nl_get_hz() to nl_get_user_hz() to indicate it's not the in-kernel HZ ↵Thomas Graf2010-11-174-9/+13
| | | | value
* sfq: perturb period is in seconds, not jiffiesThomas Graf2010-11-171-1/+1
|
* link/inet: pretty printing, make output more readableThomas Graf2010-11-161-3/+3
|
* link/inet: documentation: add examplesThomas Graf2010-11-161-0/+52
|
* link: define RTM_SETLINK to allow pretty printingThomas Graf2010-11-161-0/+1
|
* link: Add missing IFLA_AF_SPEC container attributeThomas Graf2010-11-161-0/+6
|
* link/inet: Fix array accessThomas Graf2010-11-161-1/+1
|
* link: Fix typo, use rtnl_link_af_alloc() to make sure data buffer is allocatedThomas Graf2010-11-161-1/+1
|
* link: AF_INET link moduleThomas Graf2010-11-164-8/+314
| | | | | | | | 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-132-9/+43
| | | | | | | | 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.
* link: Add support for IPv6 specific link dataThomas Graf2010-11-112-1/+328
| | | | | - parses IFLA_PROTINFO - dumps flags, cacheinfo, devconf and all statistics
* Add support for per interface ICMPv6 statisticsThomas Graf2010-11-111-0/+4
|
* Extend rtnl_link_alloc_cache() to support address familiesThomas Graf2010-11-111-7/+82
| | | | | | | 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
* Make nl_str2af return a negative value if parsing failsThomas Graf2010-11-111-1/+1
|
* link/api: Improve API documentation.Thomas Graf2010-11-113-13/+17
|
* link/api: Convert link info ops to use nl_list_headThomas Graf2010-11-112-19/+71
| | | | | rtnl_link_info_ops_lookup() now returns a pointer with refcnt increment, you must return it using rtnl_link_info_ops_put()
* link: Support for AF_BRIDGE address familyThomas Graf2010-11-112-0/+94
| | | | Supports parsing of IFLA_PROTINFO returned when dumping with PF_BRIDGE
* link/api: Check for null pointer in rtnl_link_af_ops_put()Thomas Graf2010-11-111-1/+2
|
* link: API for address family specific link dataThomas Graf2010-11-113-13/+215
| | | | | | 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/+28
| | | | | | - parses attribute if available - provides API to access value rtnl_link_get_num_vf(link, num_vf)
* link: Support IFLA_IFALIAS attributeThomas Graf2010-11-111-1/+58
| | | | | | | | - 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-042-4/+14
| | | | no users yet though.
* Correctly state the process of sending a netlink message. A messageThomas GraF2010-11-041-0/+3
| | | | passes through nl_send_iovec() before hitting nl_sendmsg()
* ematch/meta: id definitionsThomas Graf2010-11-031-1/+44
|
* Correctly parse and generate classidsThomas Graf2010-11-011-3/+4
| | | | | | | Make sure to parse strings starting with a hex represention letter but not representing a valid number as tc names. Fix typo while generating classid.
* classid auto generation if provided tc name does not existThomas Graf2010-11-011-28/+110
| | | | | | | | | | | | | | | | Manually editing etc/libnl/classid before adding tc objects is a pain. This patch adds code to attempt auto generating a unique tc id which will then be assigned to the provided name and added to the classid file. This will make the following commands work with prior definitions of the names "top" and "test" sudo sbin/nl-qdisc-add --dev eth0 --parent root --id top htb sudo sbin/nl-class-add --dev eth0 --parent top --id test htb --rate 100mbit It will generate the following ids automatically: 4001: top 4001:1 test
* Support for meta matchThomas Graf2010-10-315-3/+513
| | | | | Syntax: meta(pktlen > 768)
* text ematch supportThomas Graf2010-10-295-8/+265
|
* attr: Add padding if nested data does not end at an alignment boundryThomas Graf2010-10-291-0/+17
| | | | | This could happen if a user put an unaligned amount of data inside an attribute with nlmsg_append().
* Improved debugging messages while constructing messages/attributesThomas Graf2010-10-292-7/+19
|
* routing rules: adapt to unified routing rulesThomas Graf2010-10-291-216/+216
| | | | | | - Use FRA_ definitions - Removed obsoleted fields - Added fwmask and goto support