summaryrefslogtreecommitdiffstats
path: root/include/libnetlink.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-10-05 13:49:41 -0700
committerDavid Ahern <dsahern@gmail.com>2018-12-27 15:36:29 -0800
commitaea41afcfd6d6547dd2e80ddde8df7e3b2800482 (patch)
tree8a8bdcf96d2532cf5193d97e5a2e4adf223602ad /include/libnetlink.h
parent8847097850571f389ecb396bfabc359582a49fee (diff)
ip bridge: Set NETLINK_GET_STRICT_CHK on socket
iproute2 has been updated for the new strict policy in the kernel. Add a helper to call setsockopt to enable the feature. Add a call to ip.c and bridge.c The setsockopt fails on older kernels and the error can be safely ignored - any new fields or attributes are ignored by the older kernel. Signed-off-by: David Ahern <dsahern@gmail.com>
Diffstat (limited to 'include/libnetlink.h')
-rw-r--r--include/libnetlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libnetlink.h b/include/libnetlink.h
index 2621bc99..dc0c9c4e 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -46,6 +46,7 @@ int rtnl_open_byproto(struct rtnl_handle *rth, unsigned int subscriptions,
__attribute__((warn_unused_result));
void rtnl_close(struct rtnl_handle *rth);
+void rtnl_set_strict_dump(struct rtnl_handle *rth);
typedef int (*req_filter_fn_t)(struct nlmsghdr *nlh, int reqlen);