diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-05 16:32:03 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2009-11-12 05:05:06 -0500 |
commit | f8572d8f2a2ba75408b97dc24ef47c83671795d7 (patch) | |
tree | 052506a457939fea00d138d3a982d778df34e14c /net/decnet | |
parent | 86b1bc68e2f4244e4ea5db5458df9d19259fbb30 (diff) |
sysctl net: Remove unused binary sysctl code
Now that sys_sysctl is a compatiblity wrapper around /proc/sys
all sysctl strategy routines, and all ctl_name and strategy
entries in the sysctl tables are unused, and can be
revmoed.
In addition neigh_sysctl_register has been modified to no longer
take a strategy argument and it's callers have been modified not
to pass one.
Cc: "David Miller" <davem@davemloft.net>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: netdev@vger.kernel.org
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_dev.c | 64 | ||||
-rw-r--r-- | net/decnet/sysctl_net_decnet.c | 124 |
2 files changed, 6 insertions, 182 deletions
diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index 6e1f085db06a..1b1daeb151f2 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c | |||
@@ -89,7 +89,6 @@ static struct dn_dev_parms dn_dev_list[] = { | |||
89 | .t2 = 1, | 89 | .t2 = 1, |
90 | .t3 = 10, | 90 | .t3 = 10, |
91 | .name = "ethernet", | 91 | .name = "ethernet", |
92 | .ctl_name = NET_DECNET_CONF_ETHER, | ||
93 | .up = dn_eth_up, | 92 | .up = dn_eth_up, |
94 | .down = dn_eth_down, | 93 | .down = dn_eth_down, |
95 | .timer3 = dn_send_brd_hello, | 94 | .timer3 = dn_send_brd_hello, |
@@ -101,7 +100,6 @@ static struct dn_dev_parms dn_dev_list[] = { | |||
101 | .t2 = 1, | 100 | .t2 = 1, |
102 | .t3 = 10, | 101 | .t3 = 10, |
103 | .name = "ipgre", | 102 | .name = "ipgre", |
104 | .ctl_name = NET_DECNET_CONF_GRE, | ||
105 | .timer3 = dn_send_brd_hello, | 103 | .timer3 = dn_send_brd_hello, |
106 | }, | 104 | }, |
107 | #if 0 | 105 | #if 0 |
@@ -112,7 +110,6 @@ static struct dn_dev_parms dn_dev_list[] = { | |||
112 | .t2 = 1, | 110 | .t2 = 1, |
113 | .t3 = 120, | 111 | .t3 = 120, |
114 | .name = "x25", | 112 | .name = "x25", |
115 | .ctl_name = NET_DECNET_CONF_X25, | ||
116 | .timer3 = dn_send_ptp_hello, | 113 | .timer3 = dn_send_ptp_hello, |
117 | }, | 114 | }, |
118 | #endif | 115 | #endif |
@@ -124,7 +121,6 @@ static struct dn_dev_parms dn_dev_list[] = { | |||
124 | .t2 = 1, | 121 | .t2 = 1, |
125 | .t3 = 10, | 122 | .t3 = 10, |
126 | .name = "ppp", | 123 | .name = "ppp", |
127 | .ctl_name = NET_DECNET_CONF_PPP, | ||
128 | .timer3 = dn_send_brd_hello, | 124 | .timer3 = dn_send_brd_hello, |
129 | }, | 125 | }, |
130 | #endif | 126 | #endif |
@@ -135,7 +131,6 @@ static struct dn_dev_parms dn_dev_list[] = { | |||
135 | .t2 = 1, | 131 | .t2 = 1, |
136 | .t3 = 120, | 132 | .t3 = 120, |
137 | .name = "ddcmp", | 133 | .name = "ddcmp", |
138 | .ctl_name = NET_DECNET_CONF_DDCMP, | ||
139 | .timer3 = dn_send_ptp_hello, | 134 | .timer3 = dn_send_ptp_hello, |
140 | }, | 135 | }, |
141 | { | 136 | { |
@@ -145,7 +140,6 @@ static struct dn_dev_parms dn_dev_list[] = { | |||
145 | .t2 = 1, | 140 | .t2 = 1, |
146 | .t3 = 10, | 141 | .t3 = 10, |
147 | .name = "loopback", | 142 | .name = "loopback", |
148 | .ctl_name = NET_DECNET_CONF_LOOPBACK, | ||
149 | .timer3 = dn_send_brd_hello, | 143 | .timer3 = dn_send_brd_hello, |
150 | } | 144 | } |
151 | }; | 145 | }; |
@@ -166,10 +160,6 @@ static int max_priority[] = { 127 }; /* From DECnet spec */ | |||
166 | 160 | ||
167 | static int dn_forwarding_proc(ctl_table *, int, | 161 | static int dn_forwarding_proc(ctl_table *, int, |
168 | void __user *, size_t *, loff_t *); | 162 | void __user *, size_t *, loff_t *); |
169 | static int dn_forwarding_sysctl(ctl_table *table, | ||
170 | void __user *oldval, size_t __user *oldlenp, | ||
171 | void __user *newval, size_t newlen); | ||
172 | |||
173 | static struct dn_dev_sysctl_table { | 163 | static struct dn_dev_sysctl_table { |
174 | struct ctl_table_header *sysctl_header; | 164 | struct ctl_table_header *sysctl_header; |
175 | ctl_table dn_dev_vars[5]; | 165 | ctl_table dn_dev_vars[5]; |
@@ -177,44 +167,36 @@ static struct dn_dev_sysctl_table { | |||
177 | NULL, | 167 | NULL, |
178 | { | 168 | { |
179 | { | 169 | { |
180 | .ctl_name = NET_DECNET_CONF_DEV_FORWARDING, | ||
181 | .procname = "forwarding", | 170 | .procname = "forwarding", |
182 | .data = (void *)DN_DEV_PARMS_OFFSET(forwarding), | 171 | .data = (void *)DN_DEV_PARMS_OFFSET(forwarding), |
183 | .maxlen = sizeof(int), | 172 | .maxlen = sizeof(int), |
184 | .mode = 0644, | 173 | .mode = 0644, |
185 | .proc_handler = dn_forwarding_proc, | 174 | .proc_handler = dn_forwarding_proc, |
186 | .strategy = dn_forwarding_sysctl, | ||
187 | }, | 175 | }, |
188 | { | 176 | { |
189 | .ctl_name = NET_DECNET_CONF_DEV_PRIORITY, | ||
190 | .procname = "priority", | 177 | .procname = "priority", |
191 | .data = (void *)DN_DEV_PARMS_OFFSET(priority), | 178 | .data = (void *)DN_DEV_PARMS_OFFSET(priority), |
192 | .maxlen = sizeof(int), | 179 | .maxlen = sizeof(int), |
193 | .mode = 0644, | 180 | .mode = 0644, |
194 | .proc_handler = proc_dointvec_minmax, | 181 | .proc_handler = proc_dointvec_minmax, |
195 | .strategy = sysctl_intvec, | ||
196 | .extra1 = &min_priority, | 182 | .extra1 = &min_priority, |
197 | .extra2 = &max_priority | 183 | .extra2 = &max_priority |
198 | }, | 184 | }, |
199 | { | 185 | { |
200 | .ctl_name = NET_DECNET_CONF_DEV_T2, | ||
201 | .procname = "t2", | 186 | .procname = "t2", |
202 | .data = (void *)DN_DEV_PARMS_OFFSET(t2), | 187 | .data = (void *)DN_DEV_PARMS_OFFSET(t2), |
203 | .maxlen = sizeof(int), | 188 | .maxlen = sizeof(int), |
204 | .mode = 0644, | 189 | .mode = 0644, |
205 | .proc_handler = proc_dointvec_minmax, | 190 | .proc_handler = proc_dointvec_minmax, |
206 | .strategy = sysctl_intvec, | ||
207 | .extra1 = &min_t2, | 191 | .extra1 = &min_t2, |
208 | .extra2 = &max_t2 | 192 | .extra2 = &max_t2 |
209 | }, | 193 | }, |
210 | { | 194 | { |
211 | .ctl_name = NET_DECNET_CONF_DEV_T3, | ||
212 | .procname = "t3", | 195 | .procname = "t3", |
213 | .data = (void *)DN_DEV_PARMS_OFFSET(t3), | 196 | .data = (void *)DN_DEV_PARMS_OFFSET(t3), |
214 | .maxlen = sizeof(int), | 197 | .maxlen = sizeof(int), |
215 | .mode = 0644, | 198 | .mode = 0644, |
216 | .proc_handler = proc_dointvec_minmax, | 199 | .proc_handler = proc_dointvec_minmax, |
217 | .strategy = sysctl_intvec, | ||
218 | .extra1 = &min_t3, | 200 | .extra1 = &min_t3, |
219 | .extra2 = &max_t3 | 201 | .extra2 = &max_t3 |
220 | }, | 202 | }, |
@@ -230,9 +212,9 @@ static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms * | |||
230 | #define DN_CTL_PATH_DEV 3 | 212 | #define DN_CTL_PATH_DEV 3 |
231 | 213 | ||
232 | struct ctl_path dn_ctl_path[] = { | 214 | struct ctl_path dn_ctl_path[] = { |
233 | { .procname = "net", .ctl_name = CTL_NET, }, | 215 | { .procname = "net", }, |
234 | { .procname = "decnet", .ctl_name = NET_DECNET, }, | 216 | { .procname = "decnet", }, |
235 | { .procname = "conf", .ctl_name = NET_DECNET_CONF, }, | 217 | { .procname = "conf", }, |
236 | { /* to be set */ }, | 218 | { /* to be set */ }, |
237 | { }, | 219 | { }, |
238 | }; | 220 | }; |
@@ -248,10 +230,8 @@ static void dn_dev_sysctl_register(struct net_device *dev, struct dn_dev_parms * | |||
248 | 230 | ||
249 | if (dev) { | 231 | if (dev) { |
250 | dn_ctl_path[DN_CTL_PATH_DEV].procname = dev->name; | 232 | dn_ctl_path[DN_CTL_PATH_DEV].procname = dev->name; |
251 | dn_ctl_path[DN_CTL_PATH_DEV].ctl_name = dev->ifindex; | ||
252 | } else { | 233 | } else { |
253 | dn_ctl_path[DN_CTL_PATH_DEV].procname = parms->name; | 234 | dn_ctl_path[DN_CTL_PATH_DEV].procname = parms->name; |
254 | dn_ctl_path[DN_CTL_PATH_DEV].ctl_name = parms->ctl_name; | ||
255 | } | 235 | } |
256 | 236 | ||
257 | t->dn_dev_vars[0].extra1 = (void *)dev; | 237 | t->dn_dev_vars[0].extra1 = (void *)dev; |
@@ -317,44 +297,6 @@ static int dn_forwarding_proc(ctl_table *table, int write, | |||
317 | #endif | 297 | #endif |
318 | } | 298 | } |
319 | 299 | ||
320 | static int dn_forwarding_sysctl(ctl_table *table, | ||
321 | void __user *oldval, size_t __user *oldlenp, | ||
322 | void __user *newval, size_t newlen) | ||
323 | { | ||
324 | #ifdef CONFIG_DECNET_ROUTER | ||
325 | struct net_device *dev = table->extra1; | ||
326 | struct dn_dev *dn_db; | ||
327 | int value; | ||
328 | |||
329 | if (table->extra1 == NULL) | ||
330 | return -EINVAL; | ||
331 | |||
332 | dn_db = dev->dn_ptr; | ||
333 | |||
334 | if (newval && newlen) { | ||
335 | if (newlen != sizeof(int)) | ||
336 | return -EINVAL; | ||
337 | |||
338 | if (get_user(value, (int __user *)newval)) | ||
339 | return -EFAULT; | ||
340 | if (value < 0) | ||
341 | return -EINVAL; | ||
342 | if (value > 2) | ||
343 | return -EINVAL; | ||
344 | |||
345 | if (dn_db->parms.down) | ||
346 | dn_db->parms.down(dev); | ||
347 | dn_db->parms.forwarding = value; | ||
348 | if (dn_db->parms.up) | ||
349 | dn_db->parms.up(dev); | ||
350 | } | ||
351 | |||
352 | return 0; | ||
353 | #else | ||
354 | return -EINVAL; | ||
355 | #endif | ||
356 | } | ||
357 | |||
358 | #else /* CONFIG_SYSCTL */ | 300 | #else /* CONFIG_SYSCTL */ |
359 | static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms) | 301 | static void dn_dev_sysctl_unregister(struct dn_dev_parms *parms) |
360 | { | 302 | { |
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c index 26b0ab1e9f56..be3eb8e23288 100644 --- a/net/decnet/sysctl_net_decnet.c +++ b/net/decnet/sysctl_net_decnet.c | |||
@@ -131,39 +131,6 @@ static int parse_addr(__le16 *addr, char *str) | |||
131 | return 0; | 131 | return 0; |
132 | } | 132 | } |
133 | 133 | ||
134 | |||
135 | static int dn_node_address_strategy(ctl_table *table, | ||
136 | void __user *oldval, size_t __user *oldlenp, | ||
137 | void __user *newval, size_t newlen) | ||
138 | { | ||
139 | size_t len; | ||
140 | __le16 addr; | ||
141 | |||
142 | if (oldval && oldlenp) { | ||
143 | if (get_user(len, oldlenp)) | ||
144 | return -EFAULT; | ||
145 | if (len) { | ||
146 | if (len != sizeof(unsigned short)) | ||
147 | return -EINVAL; | ||
148 | if (put_user(decnet_address, (__le16 __user *)oldval)) | ||
149 | return -EFAULT; | ||
150 | } | ||
151 | } | ||
152 | if (newval && newlen) { | ||
153 | if (newlen != sizeof(unsigned short)) | ||
154 | return -EINVAL; | ||
155 | if (get_user(addr, (__le16 __user *)newval)) | ||
156 | return -EFAULT; | ||
157 | |||
158 | dn_dev_devices_off(); | ||
159 | |||
160 | decnet_address = addr; | ||
161 | |||
162 | dn_dev_devices_on(); | ||
163 | } | ||
164 | return 0; | ||
165 | } | ||
166 | |||
167 | static int dn_node_address_handler(ctl_table *table, int write, | 134 | static int dn_node_address_handler(ctl_table *table, int write, |
168 | void __user *buffer, | 135 | void __user *buffer, |
169 | size_t *lenp, loff_t *ppos) | 136 | size_t *lenp, loff_t *ppos) |
@@ -215,65 +182,6 @@ static int dn_node_address_handler(ctl_table *table, int write, | |||
215 | return 0; | 182 | return 0; |
216 | } | 183 | } |
217 | 184 | ||
218 | |||
219 | static int dn_def_dev_strategy(ctl_table *table, | ||
220 | void __user *oldval, size_t __user *oldlenp, | ||
221 | void __user *newval, size_t newlen) | ||
222 | { | ||
223 | size_t len; | ||
224 | struct net_device *dev; | ||
225 | char devname[17]; | ||
226 | size_t namel; | ||
227 | int rv = 0; | ||
228 | |||
229 | devname[0] = 0; | ||
230 | |||
231 | if (oldval && oldlenp) { | ||
232 | if (get_user(len, oldlenp)) | ||
233 | return -EFAULT; | ||
234 | if (len) { | ||
235 | dev = dn_dev_get_default(); | ||
236 | if (dev) { | ||
237 | strcpy(devname, dev->name); | ||
238 | dev_put(dev); | ||
239 | } | ||
240 | |||
241 | namel = strlen(devname) + 1; | ||
242 | if (len > namel) len = namel; | ||
243 | |||
244 | if (copy_to_user(oldval, devname, len)) | ||
245 | return -EFAULT; | ||
246 | |||
247 | if (put_user(len, oldlenp)) | ||
248 | return -EFAULT; | ||
249 | } | ||
250 | } | ||
251 | |||
252 | if (newval && newlen) { | ||
253 | if (newlen > 16) | ||
254 | return -E2BIG; | ||
255 | |||
256 | if (copy_from_user(devname, newval, newlen)) | ||
257 | return -EFAULT; | ||
258 | |||
259 | devname[newlen] = 0; | ||
260 | |||
261 | dev = dev_get_by_name(&init_net, devname); | ||
262 | if (dev == NULL) | ||
263 | return -ENODEV; | ||
264 | |||
265 | rv = -ENODEV; | ||
266 | if (dev->dn_ptr != NULL) { | ||
267 | rv = dn_dev_set_default(dev, 1); | ||
268 | if (rv) | ||
269 | dev_put(dev); | ||
270 | } | ||
271 | } | ||
272 | |||
273 | return rv; | ||
274 | } | ||
275 | |||
276 | |||
277 | static int dn_def_dev_handler(ctl_table *table, int write, | 185 | static int dn_def_dev_handler(ctl_table *table, int write, |
278 | void __user *buffer, | 186 | void __user *buffer, |
279 | size_t *lenp, loff_t *ppos) | 187 | size_t *lenp, loff_t *ppos) |
@@ -339,138 +247,112 @@ static int dn_def_dev_handler(ctl_table *table, int write, | |||
339 | 247 | ||
340 | static ctl_table dn_table[] = { | 248 | static ctl_table dn_table[] = { |
341 | { | 249 | { |
342 | .ctl_name = NET_DECNET_NODE_ADDRESS, | ||
343 | .procname = "node_address", | 250 | .procname = "node_address", |
344 | .maxlen = 7, | 251 | .maxlen = 7, |
345 | .mode = 0644, | 252 | .mode = 0644, |
346 | .proc_handler = dn_node_address_handler, | 253 | .proc_handler = dn_node_address_handler, |
347 | .strategy = dn_node_address_strategy, | ||
348 | }, | 254 | }, |
349 | { | 255 | { |
350 | .ctl_name = NET_DECNET_NODE_NAME, | ||
351 | .procname = "node_name", | 256 | .procname = "node_name", |
352 | .data = node_name, | 257 | .data = node_name, |
353 | .maxlen = 7, | 258 | .maxlen = 7, |
354 | .mode = 0644, | 259 | .mode = 0644, |
355 | .proc_handler = proc_dostring, | 260 | .proc_handler = proc_dostring, |
356 | .strategy = sysctl_string, | ||
357 | }, | 261 | }, |
358 | { | 262 | { |
359 | .ctl_name = NET_DECNET_DEFAULT_DEVICE, | ||
360 | .procname = "default_device", | 263 | .procname = "default_device", |
361 | .maxlen = 16, | 264 | .maxlen = 16, |
362 | .mode = 0644, | 265 | .mode = 0644, |
363 | .proc_handler = dn_def_dev_handler, | 266 | .proc_handler = dn_def_dev_handler, |
364 | .strategy = dn_def_dev_strategy, | ||
365 | }, | 267 | }, |
366 | { | 268 | { |
367 | .ctl_name = NET_DECNET_TIME_WAIT, | ||
368 | .procname = "time_wait", | 269 | .procname = "time_wait", |
369 | .data = &decnet_time_wait, | 270 | .data = &decnet_time_wait, |
370 | .maxlen = sizeof(int), | 271 | .maxlen = sizeof(int), |
371 | .mode = 0644, | 272 | .mode = 0644, |
372 | .proc_handler = proc_dointvec_minmax, | 273 | .proc_handler = proc_dointvec_minmax, |
373 | .strategy = sysctl_intvec, | ||
374 | .extra1 = &min_decnet_time_wait, | 274 | .extra1 = &min_decnet_time_wait, |
375 | .extra2 = &max_decnet_time_wait | 275 | .extra2 = &max_decnet_time_wait |
376 | }, | 276 | }, |
377 | { | 277 | { |
378 | .ctl_name = NET_DECNET_DN_COUNT, | ||
379 | .procname = "dn_count", | 278 | .procname = "dn_count", |
380 | .data = &decnet_dn_count, | 279 | .data = &decnet_dn_count, |
381 | .maxlen = sizeof(int), | 280 | .maxlen = sizeof(int), |
382 | .mode = 0644, | 281 | .mode = 0644, |
383 | .proc_handler = proc_dointvec_minmax, | 282 | .proc_handler = proc_dointvec_minmax, |
384 | .strategy = sysctl_intvec, | ||
385 | .extra1 = &min_state_count, | 283 | .extra1 = &min_state_count, |
386 | .extra2 = &max_state_count | 284 | .extra2 = &max_state_count |
387 | }, | 285 | }, |
388 | { | 286 | { |
389 | .ctl_name = NET_DECNET_DI_COUNT, | ||
390 | .procname = "di_count", | 287 | .procname = "di_count", |
391 | .data = &decnet_di_count, | 288 | .data = &decnet_di_count, |
392 | .maxlen = sizeof(int), | 289 | .maxlen = sizeof(int), |
393 | .mode = 0644, | 290 | .mode = 0644, |
394 | .proc_handler = proc_dointvec_minmax, | 291 | .proc_handler = proc_dointvec_minmax, |
395 | .strategy = sysctl_intvec, | ||
396 | .extra1 = &min_state_count, | 292 | .extra1 = &min_state_count, |
397 | .extra2 = &max_state_count | 293 | .extra2 = &max_state_count |
398 | }, | 294 | }, |
399 | { | 295 | { |
400 | .ctl_name = NET_DECNET_DR_COUNT, | ||
401 | .procname = "dr_count", | 296 | .procname = "dr_count", |
402 | .data = &decnet_dr_count, | 297 | .data = &decnet_dr_count, |
403 | .maxlen = sizeof(int), | 298 | .maxlen = sizeof(int), |
404 | .mode = 0644, | 299 | .mode = 0644, |
405 | .proc_handler = proc_dointvec_minmax, | 300 | .proc_handler = proc_dointvec_minmax, |
406 | .strategy = sysctl_intvec, | ||
407 | .extra1 = &min_state_count, | 301 | .extra1 = &min_state_count, |
408 | .extra2 = &max_state_count | 302 | .extra2 = &max_state_count |
409 | }, | 303 | }, |
410 | { | 304 | { |
411 | .ctl_name = NET_DECNET_DST_GC_INTERVAL, | ||
412 | .procname = "dst_gc_interval", | 305 | .procname = "dst_gc_interval", |
413 | .data = &decnet_dst_gc_interval, | 306 | .data = &decnet_dst_gc_interval, |
414 | .maxlen = sizeof(int), | 307 | .maxlen = sizeof(int), |
415 | .mode = 0644, | 308 | .mode = 0644, |
416 | .proc_handler = proc_dointvec_minmax, | 309 | .proc_handler = proc_dointvec_minmax, |
417 | .strategy = sysctl_intvec, | ||
418 | .extra1 = &min_decnet_dst_gc_interval, | 310 | .extra1 = &min_decnet_dst_gc_interval, |
419 | .extra2 = &max_decnet_dst_gc_interval | 311 | .extra2 = &max_decnet_dst_gc_interval |
420 | }, | 312 | }, |
421 | { | 313 | { |
422 | .ctl_name = NET_DECNET_NO_FC_MAX_CWND, | ||
423 | .procname = "no_fc_max_cwnd", | 314 | .procname = "no_fc_max_cwnd", |
424 | .data = &decnet_no_fc_max_cwnd, | 315 | .data = &decnet_no_fc_max_cwnd, |
425 | .maxlen = sizeof(int), | 316 | .maxlen = sizeof(int), |
426 | .mode = 0644, | 317 | .mode = 0644, |
427 | .proc_handler = proc_dointvec_minmax, | 318 | .proc_handler = proc_dointvec_minmax, |
428 | .strategy = sysctl_intvec, | ||
429 | .extra1 = &min_decnet_no_fc_max_cwnd, | 319 | .extra1 = &min_decnet_no_fc_max_cwnd, |
430 | .extra2 = &max_decnet_no_fc_max_cwnd | 320 | .extra2 = &max_decnet_no_fc_max_cwnd |
431 | }, | 321 | }, |
432 | { | 322 | { |
433 | .ctl_name = NET_DECNET_MEM, | ||
434 | .procname = "decnet_mem", | 323 | .procname = "decnet_mem", |
435 | .data = &sysctl_decnet_mem, | 324 | .data = &sysctl_decnet_mem, |
436 | .maxlen = sizeof(sysctl_decnet_mem), | 325 | .maxlen = sizeof(sysctl_decnet_mem), |
437 | .mode = 0644, | 326 | .mode = 0644, |
438 | .proc_handler = proc_dointvec, | 327 | .proc_handler = proc_dointvec, |
439 | .strategy = sysctl_intvec, | ||
440 | }, | 328 | }, |
441 | { | 329 | { |
442 | .ctl_name = NET_DECNET_RMEM, | ||
443 | .procname = "decnet_rmem", | 330 | .procname = "decnet_rmem", |
444 | .data = &sysctl_decnet_rmem, | 331 | .data = &sysctl_decnet_rmem, |
445 | .maxlen = sizeof(sysctl_decnet_rmem), | 332 | .maxlen = sizeof(sysctl_decnet_rmem), |
446 | .mode = 0644, | 333 | .mode = 0644, |
447 | .proc_handler = proc_dointvec, | 334 | .proc_handler = proc_dointvec, |
448 | .strategy = sysctl_intvec, | ||
449 | }, | 335 | }, |
450 | { | 336 | { |
451 | .ctl_name = NET_DECNET_WMEM, | ||
452 | .procname = "decnet_wmem", | 337 | .procname = "decnet_wmem", |
453 | .data = &sysctl_decnet_wmem, | 338 | .data = &sysctl_decnet_wmem, |
454 | .maxlen = sizeof(sysctl_decnet_wmem), | 339 | .maxlen = sizeof(sysctl_decnet_wmem), |
455 | .mode = 0644, | 340 | .mode = 0644, |
456 | .proc_handler = proc_dointvec, | 341 | .proc_handler = proc_dointvec, |
457 | .strategy = sysctl_intvec, | ||
458 | }, | 342 | }, |
459 | { | 343 | { |
460 | .ctl_name = NET_DECNET_DEBUG_LEVEL, | ||
461 | .procname = "debug", | 344 | .procname = "debug", |
462 | .data = &decnet_debug_level, | 345 | .data = &decnet_debug_level, |
463 | .maxlen = sizeof(int), | 346 | .maxlen = sizeof(int), |
464 | .mode = 0644, | 347 | .mode = 0644, |
465 | .proc_handler = proc_dointvec, | 348 | .proc_handler = proc_dointvec, |
466 | .strategy = sysctl_intvec, | ||
467 | }, | 349 | }, |
468 | {0} | 350 | { } |
469 | }; | 351 | }; |
470 | 352 | ||
471 | static struct ctl_path dn_path[] = { | 353 | static struct ctl_path dn_path[] = { |
472 | { .procname = "net", .ctl_name = CTL_NET, }, | 354 | { .procname = "net", }, |
473 | { .procname = "decnet", .ctl_name = NET_DECNET, }, | 355 | { .procname = "decnet", }, |
474 | { } | 356 | { } |
475 | }; | 357 | }; |
476 | 358 | ||