]> git.proxmox.com Git - mirror_lxc.git/commitdiff
macro: add NETLINK_DUMP_STRICT_CHK
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 Oct 2018 18:55:55 +0000 (20:55 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 Oct 2018 19:12:24 +0000 (21:12 +0200)
This adds support for the new socket option, NETLINK_DUMP_STRICT_CHK,
that userspace can use via setsockopt to request strict checking of
headers and attributes on dump requests.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/macro.h

index 6b6b5f794e82094a030f17e4690dd70aaa271b49..844cc2c3cdf65ec968a9c6d0b8c1307f65a2fd97 100644 (file)
@@ -239,6 +239,10 @@ extern int __build_bug_on_failed;
 #define prctl_arg(x) ((unsigned long)x)
 
 /* networking */
+#ifndef NETLINK_DUMP_STRICT_CHK
+#define NETLINK_DUMP_STRICT_CHK 12
+#endif
+
 #ifndef IFLA_LINKMODE
 #define IFLA_LINKMODE 17
 #endif