1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 2 /* Copyright (c) 2015 6WIND S.A. 1 /* Copyright (c) 2015 6WIND S.A. 3 * Author: Nicolas Dichtel <nicolas.dichtel@6w 2 * Author: Nicolas Dichtel <nicolas.dichtel@6wind.com> 4 * 3 * 5 * This program is free software; you can redi 4 * This program is free software; you can redistribute it and/or modify it 6 * under the terms and conditions of the GNU G 5 * under the terms and conditions of the GNU General Public License, 7 * version 2, as published by the Free Softwar 6 * version 2, as published by the Free Software Foundation. 8 */ 7 */ 9 #ifndef _UAPI_LINUX_NET_NAMESPACE_H_ 8 #ifndef _UAPI_LINUX_NET_NAMESPACE_H_ 10 #define _UAPI_LINUX_NET_NAMESPACE_H_ 9 #define _UAPI_LINUX_NET_NAMESPACE_H_ 11 10 12 /* Attributes of RTM_NEWNSID/RTM_GETNSID messa 11 /* Attributes of RTM_NEWNSID/RTM_GETNSID messages */ 13 enum { 12 enum { 14 NETNSA_NONE, 13 NETNSA_NONE, 15 #define NETNSA_NSID_NOT_ASSIGNED -1 14 #define NETNSA_NSID_NOT_ASSIGNED -1 16 NETNSA_NSID, 15 NETNSA_NSID, 17 NETNSA_PID, 16 NETNSA_PID, 18 NETNSA_FD, 17 NETNSA_FD, 19 NETNSA_TARGET_NSID, << 20 NETNSA_CURRENT_NSID, << 21 __NETNSA_MAX, 18 __NETNSA_MAX, 22 }; 19 }; 23 20 24 #define NETNSA_MAX (__NETNSA_MAX 21 #define NETNSA_MAX (__NETNSA_MAX - 1) 25 22 26 #endif /* _UAPI_LINUX_NET_NAMESPACE_H_ */ 23 #endif /* _UAPI_LINUX_NET_NAMESPACE_H_ */ 27 24
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.