2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2008-03-31 19:41:14 -07:00
|
|
|
#ifndef __NETNS_CORE_H__
|
|
|
|
|
#define __NETNS_CORE_H__
|
|
|
|
|
|
|
|
|
|
struct ctl_table_header;
|
2008-03-31 19:42:16 -07:00
|
|
|
struct prot_inuse;
|
2008-03-31 19:41:14 -07:00
|
|
|
|
|
|
|
|
struct netns_core {
|
|
|
|
|
/* core sysctls */
|
|
|
|
|
struct ctl_table_header *sysctl_hdr;
|
|
|
|
|
|
|
|
|
|
int sysctl_somaxconn;
|
2008-03-31 19:42:16 -07:00
|
|
|
|
2017-12-14 05:51:58 -08:00
|
|
|
#ifdef CONFIG_PROC_FS
|
|
|
|
|
int __percpu *sock_inuse;
|
2017-12-14 05:51:57 -08:00
|
|
|
struct prot_inuse __percpu *prot_inuse;
|
2017-12-14 05:51:59 -08:00
|
|
|
#endif
|
2008-03-31 19:41:14 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|