]> git.ipfire.org Git - thirdparty/iproute2.git/commit
iproute: Add support for extended ack to rtnl_talk
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 4 Aug 2017 16:52:15 +0000 (09:52 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 4 Aug 2017 16:54:00 +0000 (09:54 -0700)
commitb6432e68ac2f1f6b4ea50aa0d6d47e72c445c71c
treec2e38d42ed549a944e0d6ad179dbf1c0a4f895b5
parent620fc6696d4f4e9ad540a45892873b0382907739
iproute: Add support for extended ack to rtnl_talk

Add support for extended ack error reporting via libmnl.
Add a new function rtnl_talk_extack that takes a callback as an input
arg. If a netlink response contains extack attributes, the callback is
is invoked with the the err string, offset in the message and a pointer
to the message returned by the kernel.

If iproute2 is built without libmnl, it will still work but
extended error reports from kernel will not be available.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
include/libnetlink.h
lib/Makefile
lib/libnetlink.c