2 * sysctl_net_core.c: sysctl interface to net core subsystem.
4 * Begun April 1, 1996, Mike Shaver.
5 * Added /proc/sys/net/core directory entry (empty =) ). [MS]
9 #include <linux/sysctl.h>
10 #include <linux/module.h>
11 #include <linux/socket.h>
12 #include <linux/netdevice.h>
18 ctl_table core_table[] = {
21 .ctl_name = NET_CORE_WMEM_MAX,
22 .procname = "wmem_max",
23 .data = &sysctl_wmem_max,
24 .maxlen = sizeof(int),
26 .proc_handler = &proc_dointvec
29 .ctl_name = NET_CORE_RMEM_MAX,
30 .procname = "rmem_max",
31 .data = &sysctl_rmem_max,
32 .maxlen = sizeof(int),
34 .proc_handler = &proc_dointvec
37 .ctl_name = NET_CORE_WMEM_DEFAULT,
38 .procname = "wmem_default",
39 .data = &sysctl_wmem_default,
40 .maxlen = sizeof(int),
42 .proc_handler = &proc_dointvec
45 .ctl_name = NET_CORE_RMEM_DEFAULT,
46 .procname = "rmem_default",
47 .data = &sysctl_rmem_default,
48 .maxlen = sizeof(int),
50 .proc_handler = &proc_dointvec
53 .ctl_name = NET_CORE_DEV_WEIGHT,
54 .procname = "dev_weight",
56 .maxlen = sizeof(int),
58 .proc_handler = &proc_dointvec
61 .ctl_name = NET_CORE_MAX_BACKLOG,
62 .procname = "netdev_max_backlog",
63 .data = &netdev_max_backlog,
64 .maxlen = sizeof(int),
66 .proc_handler = &proc_dointvec
69 .ctl_name = NET_CORE_MSG_COST,
70 .procname = "message_cost",
71 .data = &net_msg_cost,
72 .maxlen = sizeof(int),
74 .proc_handler = &proc_dointvec_jiffies,
75 .strategy = &sysctl_jiffies,
78 .ctl_name = NET_CORE_MSG_BURST,
79 .procname = "message_burst",
80 .data = &net_msg_burst,
81 .maxlen = sizeof(int),
83 .proc_handler = &proc_dointvec,
86 .ctl_name = NET_CORE_OPTMEM_MAX,
87 .procname = "optmem_max",
88 .data = &sysctl_optmem_max,
89 .maxlen = sizeof(int),
91 .proc_handler = &proc_dointvec
95 .ctl_name = NET_CORE_AEVENT_ETIME,
96 .procname = "xfrm_aevent_etime",
97 .data = &sysctl_xfrm_aevent_etime,
98 .maxlen = sizeof(u32),
100 .proc_handler = &proc_dointvec
103 .ctl_name = NET_CORE_AEVENT_RSEQTH,
104 .procname = "xfrm_aevent_rseqth",
105 .data = &sysctl_xfrm_aevent_rseqth,
106 .maxlen = sizeof(u32),
108 .proc_handler = &proc_dointvec
111 .ctl_name = CTL_UNNUMBERED,
112 .procname = "xfrm_larval_drop",
113 .data = &sysctl_xfrm_larval_drop,
114 .maxlen = sizeof(int),
116 .proc_handler = &proc_dointvec
119 .ctl_name = CTL_UNNUMBERED,
120 .procname = "xfrm_acq_expires",
121 .data = &sysctl_xfrm_acq_expires,
122 .maxlen = sizeof(int),
124 .proc_handler = &proc_dointvec
126 #endif /* CONFIG_XFRM */
127 #endif /* CONFIG_NET */
129 .ctl_name = NET_CORE_SOMAXCONN,
130 .procname = "somaxconn",
131 .data = &sysctl_somaxconn,
132 .maxlen = sizeof(int),
134 .proc_handler = &proc_dointvec
137 .ctl_name = NET_CORE_BUDGET,
138 .procname = "netdev_budget",
139 .data = &netdev_budget,
140 .maxlen = sizeof(int),
142 .proc_handler = &proc_dointvec
145 .ctl_name = NET_CORE_WARNINGS,
146 .procname = "warnings",
147 .data = &net_msg_warn,
148 .maxlen = sizeof(int),
150 .proc_handler = &proc_dointvec