]> git.ipfire.org Git - thirdparty/iproute2.git/commit
libnetlink: Add test for error code returned from netlink reply
authorCyrill Gorcunov <gorcunov@gmail.com>
Wed, 2 Nov 2016 13:14:55 +0000 (16:14 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 1 Dec 2016 18:55:56 +0000 (10:55 -0800)
commit9f66764e308e9c645b3fb2d1cfbb7fb207eb5de1
tree5f45bf4e51a08ba934f50fb2337a054341b27c45
parentbf9a0aff363a5a6a28a0c50ac9b1b94d0ec48309
libnetlink: Add test for error code returned from netlink reply

In case if some diag module is not present in the system,
say the kernel is not modern enough, we simply skip the
error code reported. Instead we should check for data
length in NLMSG_DONE and process unsupported case.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
lib/libnetlink.c