summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormatben2 <matt.bennett@alliedtelesis.co.nz>2015-07-09 05:40:18 (GMT)
committerThomas Haller <thaller@redhat.com>2015-07-09 20:33:32 (GMT)
commit34ccb7210f1238f89229c117dc3d28cea7ae00bb (patch)
treeb94efa7ef764965bf875973c0c6f6373ffd669e3 /include
parent371226b834b662e6ad99400ffc20450e574ca5c2 (diff)
downloadlibnl-34ccb7210f1238f89229c117dc3d28cea7ae00bb.zip
libnl-34ccb7210f1238f89229c117dc3d28cea7ae00bb.tar.gz
libnl-34ccb7210f1238f89229c117dc3d28cea7ae00bb.tar.bz2
link: set ifi_change in link message
The ifi_change field can be set with the mask of the flags that need to be changed as part of the link message to the kernel. This means only the specific flags that have been changed will be modified in the kernel, rather than the entire flags entry. [thaller@redhat.com: add capability to indicate the change in behavior] https://github.com/thom311/libnl/pull/86
Diffstat (limited to 'include')
-rw-r--r--include/netlink/utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/netlink/utils.h b/include/netlink/utils.h
index 4e5adcf..74b167b 100644
--- a/include/netlink/utils.h
+++ b/include/netlink/utils.h
@@ -143,6 +143,14 @@ enum {
NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK = 8,
#define NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK NL_CAPABILITY_NL_RECV_FAIL_TRUNC_NO_PEEK
+ /**
+ * rtnl_link_build_change_request() and rtnl_link_change() would set ifi.ifi_flags but leave
+ * ifi.ifi_change at zero. This was later fixed to set ifi.ifi_change to the flags that are actually
+ * set in changes.
+ */
+ NL_CAPABILITY_LINK_BUILD_CHANGE_REQUEST_SET_CHANGE = 9,
+#define NL_CAPABILITY_LINK_BUILD_CHANGE_REQUEST_SET_CHANGE NL_CAPABILITY_LINK_BUILD_CHANGE_REQUEST_SET_CHANGE
+
__NL_CAPABILITY_MAX,
NL_CAPABILITY_MAX = (__NL_CAPABILITY_MAX - 1),
#define NL_CAPABILITY_MAX NL_CAPABILITY_MAX