netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2-next 1/3] include: update headers
@ 2015-01-20 10:36 Nicolas Dichtel
  2015-01-20 10:36 ` [PATCH iproute2-next 2/3] ipnetns: allow to get and set netns ids Nicolas Dichtel
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Nicolas Dichtel @ 2015-01-20 10:36 UTC (permalink / raw)
  To: shemminger; +Cc: netdev, Nicolas Dichtel

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
---
 include/linux/if_link.h       |  1 +
 include/linux/net_namespace.h | 23 +++++++++++++++++++++++
 include/linux/rtnetlink.h     |  5 +++++
 3 files changed, 29 insertions(+)
 create mode 100644 include/linux/net_namespace.h

diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index 167ec34bab73..58e32ace7d2a 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -146,6 +146,7 @@ enum {
 	IFLA_PHYS_PORT_ID,
 	IFLA_CARRIER_CHANGES,
 	IFLA_PHYS_SWITCH_ID,
+	IFLA_LINK_NETNSID,
 	__IFLA_MAX
 };
 
diff --git a/include/linux/net_namespace.h b/include/linux/net_namespace.h
new file mode 100644
index 000000000000..9a92b7e14a19
--- /dev/null
+++ b/include/linux/net_namespace.h
@@ -0,0 +1,23 @@
+/* Copyright (c) 2015 6WIND S.A.
+ * Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ */
+#ifndef _LINUX_NET_NAMESPACE_H_
+#define _LINUX_NET_NAMESPACE_H_
+
+/* Attributes of RTM_NEWNSID/RTM_GETNSID messages */
+enum {
+	NETNSA_NONE,
+#define NETNSA_NSID_NOT_ASSIGNED -1
+	NETNSA_NSID,
+	NETNSA_PID,
+	NETNSA_FD,
+	__NETNSA_MAX,
+};
+
+#define NETNSA_MAX		(__NETNSA_MAX - 1)
+
+#endif /* _LINUX_NET_NAMESPACE_H_ */
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 9111053f2250..3eb78105399b 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -132,6 +132,11 @@ enum {
 	RTM_GETMDB = 86,
 #define RTM_GETMDB RTM_GETMDB
 
+	RTM_NEWNSID = 88,
+#define RTM_NEWNSID RTM_NEWNSID
+	RTM_GETNSID = 90,
+#define RTM_GETNSID RTM_GETNSID
+
 	__RTM_MAX,
 #define RTM_MAX		(((__RTM_MAX + 3) & ~3) - 1)
 };
-- 
2.2.2

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-02-17 16:30 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-20 10:36 [PATCH iproute2-next 1/3] include: update headers Nicolas Dichtel
2015-01-20 10:36 ` [PATCH iproute2-next 2/3] ipnetns: allow to get and set netns ids Nicolas Dichtel
2015-01-20 10:36 ` [PATCH iproute2-next 3/3] iplink: add support of IFLA_LINK_NETNSID attribute Nicolas Dichtel
2015-01-28 13:28 ` [PATCH iproute2-next 1/3] include: update headers Nicolas Dichtel
2015-01-28 14:15   ` [PATCH v2 iproute2-next 1/4] " Nicolas Dichtel
2015-01-28 14:15     ` [PATCH v2 iproute2-next 2/4] ipnetns: allow to get and set netns ids Nicolas Dichtel
2015-01-28 14:15     ` [PATCH v2 iproute2-next 3/4] iplink: add support of IFLA_LINK_NETNSID attribute Nicolas Dichtel
2015-01-28 14:15     ` [PATCH v2 iproute2-next 4/4] bridge/fdb: display link netns id Nicolas Dichtel
2015-02-05 18:26     ` [PATCH v2 iproute2-next 1/4] include: update headers Stephen Hemminger
2015-02-06  9:02       ` Nicolas Dichtel
2015-02-17 16:30         ` [PATCH v3 iproute2 " Nicolas Dichtel
2015-02-17 16:30           ` [PATCH v3 iproute2 2/4] ipnetns: allow to get and set netns ids Nicolas Dichtel
2015-02-17 16:30           ` [PATCH v3 iproute2 3/4] iplink: add support of IFLA_LINK_NETNSID attribute Nicolas Dichtel
2015-02-17 16:30           ` [PATCH v3 iproute2 4/4] bridge/fdb: display link netns id Nicolas Dichtel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).