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]
9 #include <linux/sysctl.h>
10 #include <linux/skbuff.h>
11 #include <linux/socket.h>
12 #include <linux/netdevice.h>
13 #include <linux/init.h>
16 static int min_timer
[] = {1 * HZ
};
17 static int max_timer
[] = {300 * HZ
};
19 static struct ctl_table_header
*x25_table_header
;
21 static ctl_table x25_table
[] = {
22 {NET_X25_RESTART_REQUEST_TIMEOUT
, "restart_request_timeout",
23 &sysctl_x25_restart_request_timeout
, sizeof(int), 0644, NULL
,
24 &proc_dointvec_minmax
, &sysctl_intvec
, NULL
, &min_timer
, &max_timer
},
25 {NET_X25_CALL_REQUEST_TIMEOUT
, "call_request_timeout",
26 &sysctl_x25_call_request_timeout
, sizeof(int), 0644, NULL
,
27 &proc_dointvec_minmax
, &sysctl_intvec
, NULL
, &min_timer
, &max_timer
},
28 {NET_X25_RESET_REQUEST_TIMEOUT
, "reset_request_timeout",
29 &sysctl_x25_reset_request_timeout
, sizeof(int), 0644, NULL
,
30 &proc_dointvec_minmax
, &sysctl_intvec
, NULL
, &min_timer
, &max_timer
},
31 {NET_X25_CLEAR_REQUEST_TIMEOUT
, "clear_request_timeout",
32 &sysctl_x25_clear_request_timeout
, sizeof(int), 0644, NULL
,
33 &proc_dointvec_minmax
, &sysctl_intvec
, NULL
, &min_timer
, &max_timer
},
34 {NET_X25_ACK_HOLD_BACK_TIMEOUT
, "acknowledgement_hold_back_timeout",
35 &sysctl_x25_ack_holdback_timeout
, sizeof(int), 0644, NULL
,
36 &proc_dointvec_minmax
, &sysctl_intvec
, NULL
, &min_timer
, &max_timer
},
40 static ctl_table x25_dir_table
[] = {
41 {NET_X25
, "x25", NULL
, 0, 0555, x25_table
},
45 static ctl_table x25_root_table
[] = {
46 {CTL_NET
, "net", NULL
, 0, 0555, x25_dir_table
},
50 void __init
x25_register_sysctl(void)
52 x25_table_header
= register_sysctl_table(x25_root_table
, 1);
55 void x25_unregister_sysctl(void)
57 unregister_sysctl_table(x25_table_header
);