10 #include <linux/slab.h>
11 #include <linux/sysctl.h>
15 static int min_ipdefmode[1], max_ipdefmode[] = {1};
16 static int min_axdefmode[1], max_axdefmode[] = {1};
17 static int min_backoff[1], max_backoff[] = {2};
18 static int min_conmode[1], max_conmode[] = {2};
19 static int min_window[] = {1}, max_window[] = {7};
20 static int min_ewindow[] = {1}, max_ewindow[] = {63};
21 static int min_t1[] = {1}, max_t1[] = {30000};
22 static int min_t2[] = {1}, max_t2[] = {20000};
23 static int min_t3[1], max_t3[] = {3600000};
24 static int min_idle[1], max_idle[] = {65535000};
25 static int min_n2[] = {1}, max_n2[] = {31};
26 static int min_paclen[] = {1}, max_paclen[] = {512};
28 #ifdef CONFIG_AX25_DAMA_SLAVE
29 static int min_ds_timeout[1], max_ds_timeout[] = {65535000};
32 static const ctl_table ax25_param_table[] = {
35 .maxlen =
sizeof(
int),
38 .extra1 = &min_ipdefmode,
39 .extra2 = &max_ipdefmode
42 .procname =
"ax25_default_mode",
43 .maxlen =
sizeof(
int),
46 .extra1 = &min_axdefmode,
47 .extra2 = &max_axdefmode
50 .procname =
"backoff_type",
51 .maxlen =
sizeof(
int),
54 .extra1 = &min_backoff,
55 .extra2 = &max_backoff
58 .procname =
"connect_mode",
59 .maxlen =
sizeof(
int),
62 .extra1 = &min_conmode,
63 .extra2 = &max_conmode
66 .procname =
"standard_window_size",
67 .maxlen =
sizeof(
int),
74 .procname =
"extended_window_size",
75 .maxlen =
sizeof(
int),
78 .extra1 = &min_ewindow,
79 .extra2 = &max_ewindow
82 .procname =
"t1_timeout",
83 .maxlen =
sizeof(
int),
90 .procname =
"t2_timeout",
91 .maxlen =
sizeof(
int),
98 .procname =
"t3_timeout",
99 .maxlen =
sizeof(
int),
106 .procname =
"idle_timeout",
107 .maxlen =
sizeof(
int),
114 .procname =
"maximum_retry_count",
115 .maxlen =
sizeof(
int),
122 .procname =
"maximum_packet_length",
123 .maxlen =
sizeof(
int),
126 .extra1 = &min_paclen,
127 .extra2 = &max_paclen
130 .procname =
"protocol",
131 .maxlen =
sizeof(
int),
134 .extra1 = &min_proto,
137 #ifdef CONFIG_AX25_DAMA_SLAVE
139 .procname =
"dama_slave_timeout",
140 .maxlen =
sizeof(
int),
143 .extra1 = &min_ds_timeout,
144 .extra2 = &max_ds_timeout