diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/Kbuild | 1 | ||||
| -rw-r--r-- | include/uapi/linux/net_namespace.h | 23 | ||||
| -rw-r--r-- | include/uapi/linux/rtnetlink.h | 5 |
3 files changed, 29 insertions, 0 deletions
diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild index 00b100023c47..14b7b6e44c77 100644 --- a/include/uapi/linux/Kbuild +++ b/include/uapi/linux/Kbuild | |||
| @@ -283,6 +283,7 @@ header-y += net.h | |||
| 283 | header-y += netlink_diag.h | 283 | header-y += netlink_diag.h |
| 284 | header-y += netlink.h | 284 | header-y += netlink.h |
| 285 | header-y += netrom.h | 285 | header-y += netrom.h |
| 286 | header-y += net_namespace.h | ||
| 286 | header-y += net_tstamp.h | 287 | header-y += net_tstamp.h |
| 287 | header-y += nfc.h | 288 | header-y += nfc.h |
| 288 | header-y += nfs2.h | 289 | header-y += nfs2.h |
diff --git a/include/uapi/linux/net_namespace.h b/include/uapi/linux/net_namespace.h new file mode 100644 index 000000000000..778cd2c3ebf4 --- /dev/null +++ b/include/uapi/linux/net_namespace.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* Copyright (c) 2015 6WIND S.A. | ||
| 2 | * Author: Nicolas Dichtel <nicolas.dichtel@6wind.com> | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | */ | ||
| 8 | #ifndef _UAPI_LINUX_NET_NAMESPACE_H_ | ||
| 9 | #define _UAPI_LINUX_NET_NAMESPACE_H_ | ||
| 10 | |||
| 11 | /* Attributes of RTM_NEWNSID/RTM_GETNSID messages */ | ||
| 12 | enum { | ||
| 13 | NETNSA_NONE, | ||
| 14 | #define NETNSA_NSID_NOT_ASSIGNED -1 | ||
| 15 | NETNSA_NSID, | ||
| 16 | NETNSA_PID, | ||
| 17 | NETNSA_FD, | ||
| 18 | __NETNSA_MAX, | ||
| 19 | }; | ||
| 20 | |||
| 21 | #define NETNSA_MAX (__NETNSA_MAX - 1) | ||
| 22 | |||
| 23 | #endif /* _UAPI_LINUX_NET_NAMESPACE_H_ */ | ||
diff --git a/include/uapi/linux/rtnetlink.h b/include/uapi/linux/rtnetlink.h index a1d18593f41e..5cc5d66bf519 100644 --- a/include/uapi/linux/rtnetlink.h +++ b/include/uapi/linux/rtnetlink.h | |||
| @@ -132,6 +132,11 @@ enum { | |||
| 132 | RTM_GETMDB = 86, | 132 | RTM_GETMDB = 86, |
| 133 | #define RTM_GETMDB RTM_GETMDB | 133 | #define RTM_GETMDB RTM_GETMDB |
| 134 | 134 | ||
| 135 | RTM_NEWNSID = 88, | ||
| 136 | #define RTM_NEWNSID RTM_NEWNSID | ||
| 137 | RTM_GETNSID = 90, | ||
| 138 | #define RTM_GETNSID RTM_GETNSID | ||
| 139 | |||
| 135 | __RTM_MAX, | 140 | __RTM_MAX, |
| 136 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) | 141 | #define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1) |
| 137 | }; | 142 | }; |
