| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Behaves like rtnl_tc_data() but verifies that the traffic control
object is of the expected type.
|
|
|
|
|
| |
Use in addr and tc layer to avoid warnings being printed if no
cache is available.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Takes a link object and extracts ifindex and name to build a deletion request
message to delete virtual network links.
|
| |
|
|
|
|
|
| |
Added based on a RFE. This is required if allocation and
(re)filling is to be splitted.
|
| |
|
| |
|
|
|
|
|
|
|
| |
- removed dead functions in header files
- deprecated rtnl_class_foreach_*() functions due to their missing
handling possibility of OOM situations
- improved API documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Function which sends message using nl_send_auto(), frees the message and
waits for ACK/error message (if auto-ack is not disabled).
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
- remove dead prototypes
- reformat
|
| |
|
|
|
|
| |
fix missing declaration of nl_cache_search
|
|
|
|
| |
Mostly killing doxygen warnings, some doc updates to caching
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This function is named nfnl_nl_del in lib/netfilter/ct.c, while it was
declared nfnl_ct_delete in the header.
|
|
|
|
| |
for convenience
|
| |
|
| |
|
| |
|
|
|
|
| |
everyone should use nl_addr_put()
|
|
|
|
| |
Old name is kept for compatibility.
|
|
|
|
|
| |
Also put remaining variable on local stack instead of requiring the user
to supply it. Old interface is kept for compatibility.
|
|
|
|
| |
The old symbols are left around for compatibility.
|
|
|
|
|
|
| |
nl_complete_msg()
Old symbols left to maintain backwards compatibility
|
| |
|
| |
|
|
|
|
| |
value
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
rtnl_link_info_ops_lookup() now returns a pointer with refcnt increment,
you must return it using rtnl_link_info_ops_put()
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
- parses attribute if available
- provides API to access value
rtnl_link_get_num_vf(link, num_vf)
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
no users yet though.
|