]> git.proxmox.com Git - mirror_iproute2.git/commit
netlink: Add flag to suppress print of nlmsg error
authorDavid Ahern <dsa@cumulusnetworks.com>
Fri, 24 Mar 2017 02:51:20 +0000 (19:51 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 14 Apr 2017 23:00:15 +0000 (16:00 -0700)
commit3ad6d176389d4157bf4146cfea41337f08cfa62f
tree22ec7bc9e25f4382959a92fab610ff3813247aa2
parentdfb60ddd297dbc362003a26261a69eaf7cfa74b7
netlink: Add flag to suppress print of nlmsg error

Allow callers of the dump API to handle nlmsg errors (e.g., an
unsupported feature). Setting RTNL_HANDLE_F_SUPPRESS_NLERR in the
rtnl_handle avoids unnecessary messages to the users in some case.
For example,

  RTNETLINK answers: Operation not supported

when probing for support of a new feature.

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