]> git.proxmox.com Git - mirror_iproute2.git/commit
ip bridge: Set NETLINK_GET_STRICT_CHK on socket
authorDavid Ahern <dsahern@gmail.com>
Fri, 5 Oct 2018 20:49:41 +0000 (13:49 -0700)
committerDavid Ahern <dsahern@gmail.com>
Thu, 27 Dec 2018 23:36:29 +0000 (15:36 -0800)
commitaea41afcfd6d6547dd2e80ddde8df7e3b2800482
tree8a8bdcf96d2532cf5193d97e5a2e4adf223602ad
parent8847097850571f389ecb396bfabc359582a49fee
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>
bridge/bridge.c
include/libnetlink.h
ip/ip.c
lib/libnetlink.c