summaryrefslogtreecommitdiff
path: root/include/uapi/linux/netconf.h
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2012-10-26 02:28:49 +0400
committerDavid S. Miller <davem@davemloft.net>2012-10-29 03:05:00 +0400
commitd900082bd9060dc955b181dae2f2adf86e27d747 (patch)
treeb49d6a5326fa9e2ce2e7c483e828b3255e0b9b07 /include/uapi/linux/netconf.h
parentf019948dbb388eacbc0fb61db1d30e686224df77 (diff)
downloadlinux-d900082bd9060dc955b181dae2f2adf86e27d747.tar.xz
rtnl: add a new type of msg to advertise protocol configuration
A new type is added to allow userland to monitor protocol configuration, like IPv4 or IPv6. For example, monitoring the state of the forwarding status of an interface of the system. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/netconf.h')
-rw-r--r--include/uapi/linux/netconf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/uapi/linux/netconf.h b/include/uapi/linux/netconf.h
new file mode 100644
index 000000000000..d0513726711f
--- /dev/null
+++ b/include/uapi/linux/netconf.h
@@ -0,0 +1,22 @@
+#ifndef _UAPI_LINUX_NETCONF_H_
+#define _UAPI_LINUX_NETCONF_H_
+
+#include <linux/types.h>
+#include <linux/netlink.h>
+
+struct netconfmsg {
+ __u8 ncm_family;
+};
+
+enum {
+ NETCONFA_UNSPEC,
+ NETCONFA_IFINDEX,
+ NETCONFA_FORWARDING,
+ __NETCONFA_MAX
+};
+#define NETCONFA_MAX (__NETCONFA_MAX - 1)
+
+#define NETCONFA_IFINDEX_ALL -1
+#define NETCONFA_IFINDEX_DEFAULT -2
+
+#endif /* _UAPI_LINUX_NETCONF_H_ */