diff options
Diffstat (limited to 'net/netrom/sysctl_net_netrom.c')
-rw-r--r-- | net/netrom/sysctl_net_netrom.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/net/netrom/sysctl_net_netrom.c b/net/netrom/sysctl_net_netrom.c index 7b49591fe87c..1e0fa9e57aac 100644 --- a/net/netrom/sysctl_net_netrom.c +++ b/net/netrom/sysctl_net_netrom.c | |||
@@ -36,143 +36,119 @@ static struct ctl_table_header *nr_table_header; | |||
36 | 36 | ||
37 | static ctl_table nr_table[] = { | 37 | static ctl_table nr_table[] = { |
38 | { | 38 | { |
39 | .ctl_name = NET_NETROM_DEFAULT_PATH_QUALITY, | ||
40 | .procname = "default_path_quality", | 39 | .procname = "default_path_quality", |
41 | .data = &sysctl_netrom_default_path_quality, | 40 | .data = &sysctl_netrom_default_path_quality, |
42 | .maxlen = sizeof(int), | 41 | .maxlen = sizeof(int), |
43 | .mode = 0644, | 42 | .mode = 0644, |
44 | .proc_handler = proc_dointvec_minmax, | 43 | .proc_handler = proc_dointvec_minmax, |
45 | .strategy = sysctl_intvec, | ||
46 | .extra1 = &min_quality, | 44 | .extra1 = &min_quality, |
47 | .extra2 = &max_quality | 45 | .extra2 = &max_quality |
48 | }, | 46 | }, |
49 | { | 47 | { |
50 | .ctl_name = NET_NETROM_OBSOLESCENCE_COUNT_INITIALISER, | ||
51 | .procname = "obsolescence_count_initialiser", | 48 | .procname = "obsolescence_count_initialiser", |
52 | .data = &sysctl_netrom_obsolescence_count_initialiser, | 49 | .data = &sysctl_netrom_obsolescence_count_initialiser, |
53 | .maxlen = sizeof(int), | 50 | .maxlen = sizeof(int), |
54 | .mode = 0644, | 51 | .mode = 0644, |
55 | .proc_handler = proc_dointvec_minmax, | 52 | .proc_handler = proc_dointvec_minmax, |
56 | .strategy = sysctl_intvec, | ||
57 | .extra1 = &min_obs, | 53 | .extra1 = &min_obs, |
58 | .extra2 = &max_obs | 54 | .extra2 = &max_obs |
59 | }, | 55 | }, |
60 | { | 56 | { |
61 | .ctl_name = NET_NETROM_NETWORK_TTL_INITIALISER, | ||
62 | .procname = "network_ttl_initialiser", | 57 | .procname = "network_ttl_initialiser", |
63 | .data = &sysctl_netrom_network_ttl_initialiser, | 58 | .data = &sysctl_netrom_network_ttl_initialiser, |
64 | .maxlen = sizeof(int), | 59 | .maxlen = sizeof(int), |
65 | .mode = 0644, | 60 | .mode = 0644, |
66 | .proc_handler = proc_dointvec_minmax, | 61 | .proc_handler = proc_dointvec_minmax, |
67 | .strategy = sysctl_intvec, | ||
68 | .extra1 = &min_ttl, | 62 | .extra1 = &min_ttl, |
69 | .extra2 = &max_ttl | 63 | .extra2 = &max_ttl |
70 | }, | 64 | }, |
71 | { | 65 | { |
72 | .ctl_name = NET_NETROM_TRANSPORT_TIMEOUT, | ||
73 | .procname = "transport_timeout", | 66 | .procname = "transport_timeout", |
74 | .data = &sysctl_netrom_transport_timeout, | 67 | .data = &sysctl_netrom_transport_timeout, |
75 | .maxlen = sizeof(int), | 68 | .maxlen = sizeof(int), |
76 | .mode = 0644, | 69 | .mode = 0644, |
77 | .proc_handler = proc_dointvec_minmax, | 70 | .proc_handler = proc_dointvec_minmax, |
78 | .strategy = sysctl_intvec, | ||
79 | .extra1 = &min_t1, | 71 | .extra1 = &min_t1, |
80 | .extra2 = &max_t1 | 72 | .extra2 = &max_t1 |
81 | }, | 73 | }, |
82 | { | 74 | { |
83 | .ctl_name = NET_NETROM_TRANSPORT_MAXIMUM_TRIES, | ||
84 | .procname = "transport_maximum_tries", | 75 | .procname = "transport_maximum_tries", |
85 | .data = &sysctl_netrom_transport_maximum_tries, | 76 | .data = &sysctl_netrom_transport_maximum_tries, |
86 | .maxlen = sizeof(int), | 77 | .maxlen = sizeof(int), |
87 | .mode = 0644, | 78 | .mode = 0644, |
88 | .proc_handler = proc_dointvec_minmax, | 79 | .proc_handler = proc_dointvec_minmax, |
89 | .strategy = sysctl_intvec, | ||
90 | .extra1 = &min_n2, | 80 | .extra1 = &min_n2, |
91 | .extra2 = &max_n2 | 81 | .extra2 = &max_n2 |
92 | }, | 82 | }, |
93 | { | 83 | { |
94 | .ctl_name = NET_NETROM_TRANSPORT_ACKNOWLEDGE_DELAY, | ||
95 | .procname = "transport_acknowledge_delay", | 84 | .procname = "transport_acknowledge_delay", |
96 | .data = &sysctl_netrom_transport_acknowledge_delay, | 85 | .data = &sysctl_netrom_transport_acknowledge_delay, |
97 | .maxlen = sizeof(int), | 86 | .maxlen = sizeof(int), |
98 | .mode = 0644, | 87 | .mode = 0644, |
99 | .proc_handler = proc_dointvec_minmax, | 88 | .proc_handler = proc_dointvec_minmax, |
100 | .strategy = sysctl_intvec, | ||
101 | .extra1 = &min_t2, | 89 | .extra1 = &min_t2, |
102 | .extra2 = &max_t2 | 90 | .extra2 = &max_t2 |
103 | }, | 91 | }, |
104 | { | 92 | { |
105 | .ctl_name = NET_NETROM_TRANSPORT_BUSY_DELAY, | ||
106 | .procname = "transport_busy_delay", | 93 | .procname = "transport_busy_delay", |
107 | .data = &sysctl_netrom_transport_busy_delay, | 94 | .data = &sysctl_netrom_transport_busy_delay, |
108 | .maxlen = sizeof(int), | 95 | .maxlen = sizeof(int), |
109 | .mode = 0644, | 96 | .mode = 0644, |
110 | .proc_handler = proc_dointvec_minmax, | 97 | .proc_handler = proc_dointvec_minmax, |
111 | .strategy = sysctl_intvec, | ||
112 | .extra1 = &min_t4, | 98 | .extra1 = &min_t4, |
113 | .extra2 = &max_t4 | 99 | .extra2 = &max_t4 |
114 | }, | 100 | }, |
115 | { | 101 | { |
116 | .ctl_name = NET_NETROM_TRANSPORT_REQUESTED_WINDOW_SIZE, | ||
117 | .procname = "transport_requested_window_size", | 102 | .procname = "transport_requested_window_size", |
118 | .data = &sysctl_netrom_transport_requested_window_size, | 103 | .data = &sysctl_netrom_transport_requested_window_size, |
119 | .maxlen = sizeof(int), | 104 | .maxlen = sizeof(int), |
120 | .mode = 0644, | 105 | .mode = 0644, |
121 | .proc_handler = proc_dointvec_minmax, | 106 | .proc_handler = proc_dointvec_minmax, |
122 | .strategy = sysctl_intvec, | ||
123 | .extra1 = &min_window, | 107 | .extra1 = &min_window, |
124 | .extra2 = &max_window | 108 | .extra2 = &max_window |
125 | }, | 109 | }, |
126 | { | 110 | { |
127 | .ctl_name = NET_NETROM_TRANSPORT_NO_ACTIVITY_TIMEOUT, | ||
128 | .procname = "transport_no_activity_timeout", | 111 | .procname = "transport_no_activity_timeout", |
129 | .data = &sysctl_netrom_transport_no_activity_timeout, | 112 | .data = &sysctl_netrom_transport_no_activity_timeout, |
130 | .maxlen = sizeof(int), | 113 | .maxlen = sizeof(int), |
131 | .mode = 0644, | 114 | .mode = 0644, |
132 | .proc_handler = proc_dointvec_minmax, | 115 | .proc_handler = proc_dointvec_minmax, |
133 | .strategy = sysctl_intvec, | ||
134 | .extra1 = &min_idle, | 116 | .extra1 = &min_idle, |
135 | .extra2 = &max_idle | 117 | .extra2 = &max_idle |
136 | }, | 118 | }, |
137 | { | 119 | { |
138 | .ctl_name = NET_NETROM_ROUTING_CONTROL, | ||
139 | .procname = "routing_control", | 120 | .procname = "routing_control", |
140 | .data = &sysctl_netrom_routing_control, | 121 | .data = &sysctl_netrom_routing_control, |
141 | .maxlen = sizeof(int), | 122 | .maxlen = sizeof(int), |
142 | .mode = 0644, | 123 | .mode = 0644, |
143 | .proc_handler = proc_dointvec_minmax, | 124 | .proc_handler = proc_dointvec_minmax, |
144 | .strategy = sysctl_intvec, | ||
145 | .extra1 = &min_route, | 125 | .extra1 = &min_route, |
146 | .extra2 = &max_route | 126 | .extra2 = &max_route |
147 | }, | 127 | }, |
148 | { | 128 | { |
149 | .ctl_name = NET_NETROM_LINK_FAILS_COUNT, | ||
150 | .procname = "link_fails_count", | 129 | .procname = "link_fails_count", |
151 | .data = &sysctl_netrom_link_fails_count, | 130 | .data = &sysctl_netrom_link_fails_count, |
152 | .maxlen = sizeof(int), | 131 | .maxlen = sizeof(int), |
153 | .mode = 0644, | 132 | .mode = 0644, |
154 | .proc_handler = proc_dointvec_minmax, | 133 | .proc_handler = proc_dointvec_minmax, |
155 | .strategy = sysctl_intvec, | ||
156 | .extra1 = &min_fails, | 134 | .extra1 = &min_fails, |
157 | .extra2 = &max_fails | 135 | .extra2 = &max_fails |
158 | }, | 136 | }, |
159 | { | 137 | { |
160 | .ctl_name = NET_NETROM_RESET, | ||
161 | .procname = "reset", | 138 | .procname = "reset", |
162 | .data = &sysctl_netrom_reset_circuit, | 139 | .data = &sysctl_netrom_reset_circuit, |
163 | .maxlen = sizeof(int), | 140 | .maxlen = sizeof(int), |
164 | .mode = 0644, | 141 | .mode = 0644, |
165 | .proc_handler = proc_dointvec_minmax, | 142 | .proc_handler = proc_dointvec_minmax, |
166 | .strategy = sysctl_intvec, | ||
167 | .extra1 = &min_reset, | 143 | .extra1 = &min_reset, |
168 | .extra2 = &max_reset | 144 | .extra2 = &max_reset |
169 | }, | 145 | }, |
170 | { .ctl_name = 0 } | 146 | { } |
171 | }; | 147 | }; |
172 | 148 | ||
173 | static struct ctl_path nr_path[] = { | 149 | static struct ctl_path nr_path[] = { |
174 | { .procname = "net", .ctl_name = CTL_NET, }, | 150 | { .procname = "net", }, |
175 | { .procname = "netrom", .ctl_name = NET_NETROM, }, | 151 | { .procname = "netrom", }, |
176 | { } | 152 | { } |
177 | }; | 153 | }; |
178 | 154 | ||