xref: /linux/include/uapi/linux/net_namespace.h (revision cff478b9d9ccaee0de0e02700c63addf007b5d3c)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
20c7aecd4SNicolas Dichtel /* Copyright (c) 2015 6WIND S.A.
30c7aecd4SNicolas Dichtel  * Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>
40c7aecd4SNicolas Dichtel  *
50c7aecd4SNicolas Dichtel  * This program is free software; you can redistribute it and/or modify it
60c7aecd4SNicolas Dichtel  * under the terms and conditions of the GNU General Public License,
70c7aecd4SNicolas Dichtel  * version 2, as published by the Free Software Foundation.
80c7aecd4SNicolas Dichtel  */
90c7aecd4SNicolas Dichtel #ifndef _UAPI_LINUX_NET_NAMESPACE_H_
100c7aecd4SNicolas Dichtel #define _UAPI_LINUX_NET_NAMESPACE_H_
110c7aecd4SNicolas Dichtel 
120c7aecd4SNicolas Dichtel /* Attributes of RTM_NEWNSID/RTM_GETNSID messages */
130c7aecd4SNicolas Dichtel enum {
140c7aecd4SNicolas Dichtel 	NETNSA_NONE,
150c7aecd4SNicolas Dichtel #define NETNSA_NSID_NOT_ASSIGNED -1
160c7aecd4SNicolas Dichtel 	NETNSA_NSID,
170c7aecd4SNicolas Dichtel 	NETNSA_PID,
180c7aecd4SNicolas Dichtel 	NETNSA_FD,
19*cff478b9SNicolas Dichtel 	NETNSA_TARGET_NSID,
200c7aecd4SNicolas Dichtel 	__NETNSA_MAX,
210c7aecd4SNicolas Dichtel };
220c7aecd4SNicolas Dichtel 
230c7aecd4SNicolas Dichtel #define NETNSA_MAX		(__NETNSA_MAX - 1)
240c7aecd4SNicolas Dichtel 
250c7aecd4SNicolas Dichtel #endif /* _UAPI_LINUX_NET_NAMESPACE_H_ */
26