net_namespace.h 715 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* Copyright (c) 2015 6WIND S.A.
  3. * Author: Nicolas Dichtel <nicolas.dichtel@6wind.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms and conditions of the GNU General Public License,
  7. * version 2, as published by the Free Software Foundation.
  8. */
  9. #ifndef _LINUX_NET_NAMESPACE_H_
  10. #define _LINUX_NET_NAMESPACE_H_
  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_TARGET_NSID,
  19. NETNSA_CURRENT_NSID,
  20. __NETNSA_MAX,
  21. };
  22. #define NETNSA_MAX (__NETNSA_MAX - 1)
  23. #endif /* _LINUX_NET_NAMESPACE_H_ */