]> git.ipfire.org Git - thirdparty/iproute2.git/commit
libnetlink: Add variant of rtnl_talk that does not display RTNETLINK answers error
authorDavid Ahern <dsa@cumulusnetworks.com>
Mon, 12 Dec 2016 00:53:14 +0000 (16:53 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 13 Dec 2016 18:20:16 +0000 (10:20 -0800)
commit463d9efaa258a466df706e8630f128055bf10bdc
treea1c6451fabd3b930be9e5e8e4769e2291ecbd920
parent2330490f0e8d8d6a9ca0787c81701693c9717ff7
libnetlink: Add variant of rtnl_talk that does not display RTNETLINK answers error

iplink_vrf has 2 functions used to validate a user given device name is
a VRF device and to return the table id. If the user string is not a
device name ip commands with a vrf keyword show a confusing error
message: "RTNETLINK answers: No such device".

Add a variant of rtnl_talk that does not display the "RTNETLINK answers"
message and update iplink_vrf to use it.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
include/libnetlink.h
ip/iplink_vrf.c
lib/libnetlink.c