core.h 346 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NETNS_CORE_H__
  3. #define __NETNS_CORE_H__
  4. struct ctl_table_header;
  5. struct prot_inuse;
  6. struct netns_core {
  7. /* core sysctls */
  8. struct ctl_table_header *sysctl_hdr;
  9. int sysctl_somaxconn;
  10. #ifdef CONFIG_PROC_FS
  11. int __percpu *sock_inuse;
  12. struct prot_inuse __percpu *prot_inuse;
  13. #endif
  14. };
  15. #endif