2 * sysctl_net_x25.c: sysctl interface to net X.25 subsystem.
4 * Begun April 1, 1996, Mike Shaver.
5 * Added /proc/sys/net/x25 directory entry (empty =) ). [MS]
8 #include <linux/sysctl.h>
9 #include <linux/skbuff.h>
10 #include <linux/socket.h>
11 #include <linux/netdevice.h>
12 #include <linux/init.h>
15 static int min_timer
[] = { 1 * HZ
};
16 static int max_timer
[] = { 300 * HZ
};
18 static struct ctl_table_header
*x25_table_header
;
20 static struct ctl_table x25_table
[] = {
22 .procname
= "restart_request_timeout",
23 .data
= &sysctl_x25_restart_request_timeout
,
24 .maxlen
= sizeof(int),
26 .proc_handler
= proc_dointvec_minmax
,
31 .procname
= "call_request_timeout",
32 .data
= &sysctl_x25_call_request_timeout
,
33 .maxlen
= sizeof(int),
35 .proc_handler
= proc_dointvec_minmax
,
40 .procname
= "reset_request_timeout",
41 .data
= &sysctl_x25_reset_request_timeout
,
42 .maxlen
= sizeof(int),
44 .proc_handler
= proc_dointvec_minmax
,
49 .procname
= "clear_request_timeout",
50 .data
= &sysctl_x25_clear_request_timeout
,
51 .maxlen
= sizeof(int),
53 .proc_handler
= proc_dointvec_minmax
,
58 .procname
= "acknowledgement_hold_back_timeout",
59 .data
= &sysctl_x25_ack_holdback_timeout
,
60 .maxlen
= sizeof(int),
62 .proc_handler
= proc_dointvec_minmax
,
67 .procname
= "x25_forward",
68 .data
= &sysctl_x25_forward
,
69 .maxlen
= sizeof(int),
71 .proc_handler
= proc_dointvec
,
76 static struct ctl_path x25_path
[] = {
77 { .procname
= "net", },
78 { .procname
= "x25", },
82 void __init
x25_register_sysctl(void)
84 x25_table_header
= register_sysctl_paths(x25_path
, x25_table
);
87 void x25_unregister_sysctl(void)
89 unregister_sysctl_table(x25_table_header
);