| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
1: is more readable than 01:
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
API for adding virtual links
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
| |
This line was removed by mistake in the last commit
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
(Set an end to all the bug reports of applications failing
to do so.)
|
|
|
|
|
|
|
| |
- 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).
|
|
|
|
|
|
|
|
|
|
| |
Removing non existent route (both ipv4 and ipv6) using
rtnl_route_delete return NLE_FAILURE generic error code. After
investigation, it seems the linux kernel return -ESRCH in that case
(see http://lxr.linux.no/linux+v2.6.38/net/ipv6/route.c#L1367). Same
behaviour apply for removing non existent address. The function
nl_syserr2nlerr (lib/error.c) which is responsible for translating
from kernel error to libnl error doesn't handle ESRCH.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
TCA_ATTR_IFINDEX | TCA_ATTR_PARENT | TCA_ATTR_KIND
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This commit adds some missing files (some header files, the files below
/etc and the bison/flex files) to the distribution tarball to ensure
that libnl can be built from the tarballs created using "make dist".
It also adds some incantations to properly generate the flex and bison
output since the generated output is no longer shipped in the tarball.
|
|
|
|
|
|
|
| |
This patch fixes out-of-tree build, that is, when building with
$builddir != $srcdir. In such a case, some generated header files are
not found because they live in a different tree and can be fixed by
adding the directories to the compiler's include search path.
|
|
|
|
|
| |
Check for empty nested attributes in nla_nest_end() and omit the
attribute alltogether if is is the case.
|
|
|
|
|
|
|
|
|
|
|
| |
attached patch adds missing checks for ROUTE_ATTR_MULTIPATH
when dealing with multipath routing.
Affected functions
rtnl_route_remove_nexthop
rtnl_route_get_nexthops
rtnl_route_get_nnexthops
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Miguel Di Ciurcio Filho <miguel.filho@gmail.com>
|
| |
|
| |
|
|
|
|
| |
everyone should use nl_addr_put()
|
| |
|
| |
|
|
|
|
| |
The old symbols are left around for compatibility.
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
nl_complete_msg()
Old symbols left to maintain backwards compatibility
|
| |
|
| |
|
| |
|