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/ipv6 | |
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/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 90 | ||||
-rw-r--r-- | net/ipv6/icmp.c | 4 | ||||
-rw-r--r-- | net/ipv6/ndisc.c | 39 | ||||
-rw-r--r-- | net/ipv6/netfilter/ip6_queue.c | 4 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | 4 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_reasm.c | 4 | ||||
-rw-r--r-- | net/ipv6/reassembly.c | 6 | ||||
-rw-r--r-- | net/ipv6/route.c | 18 | ||||
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 12 | ||||
-rw-r--r-- | net/ipv6/xfrm6_policy.c | 1 |
10 files changed, 19 insertions, 163 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 1fd0a3d775d2..f918399c985c 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -4000,41 +4000,6 @@ int addrconf_sysctl_forward(ctl_table *ctl, int write, | |||
4000 | return ret; | 4000 | return ret; |
4001 | } | 4001 | } |
4002 | 4002 | ||
4003 | static int addrconf_sysctl_forward_strategy(ctl_table *table, | ||
4004 | void __user *oldval, | ||
4005 | size_t __user *oldlenp, | ||
4006 | void __user *newval, size_t newlen) | ||
4007 | { | ||
4008 | int *valp = table->data; | ||
4009 | int val = *valp; | ||
4010 | int new; | ||
4011 | |||
4012 | if (!newval || !newlen) | ||
4013 | return 0; | ||
4014 | if (newlen != sizeof(int)) | ||
4015 | return -EINVAL; | ||
4016 | if (get_user(new, (int __user *)newval)) | ||
4017 | return -EFAULT; | ||
4018 | if (new == *valp) | ||
4019 | return 0; | ||
4020 | if (oldval && oldlenp) { | ||
4021 | size_t len; | ||
4022 | if (get_user(len, oldlenp)) | ||
4023 | return -EFAULT; | ||
4024 | if (len) { | ||
4025 | if (len > table->maxlen) | ||
4026 | len = table->maxlen; | ||
4027 | if (copy_to_user(oldval, valp, len)) | ||
4028 | return -EFAULT; | ||
4029 | if (put_user(len, oldlenp)) | ||
4030 | return -EFAULT; | ||
4031 | } | ||
4032 | } | ||
4033 | |||
4034 | *valp = new; | ||
4035 | return addrconf_fixup_forwarding(table, valp, val); | ||
4036 | } | ||
4037 | |||
4038 | static void dev_disable_change(struct inet6_dev *idev) | 4003 | static void dev_disable_change(struct inet6_dev *idev) |
4039 | { | 4004 | { |
4040 | if (!idev || !idev->dev) | 4005 | if (!idev || !idev->dev) |
@@ -4113,16 +4078,13 @@ static struct addrconf_sysctl_table | |||
4113 | .sysctl_header = NULL, | 4078 | .sysctl_header = NULL, |
4114 | .addrconf_vars = { | 4079 | .addrconf_vars = { |
4115 | { | 4080 | { |
4116 | .ctl_name = NET_IPV6_FORWARDING, | ||
4117 | .procname = "forwarding", | 4081 | .procname = "forwarding", |
4118 | .data = &ipv6_devconf.forwarding, | 4082 | .data = &ipv6_devconf.forwarding, |
4119 | .maxlen = sizeof(int), | 4083 | .maxlen = sizeof(int), |
4120 | .mode = 0644, | 4084 | .mode = 0644, |
4121 | .proc_handler = addrconf_sysctl_forward, | 4085 | .proc_handler = addrconf_sysctl_forward, |
4122 | .strategy = addrconf_sysctl_forward_strategy, | ||
4123 | }, | 4086 | }, |
4124 | { | 4087 | { |
4125 | .ctl_name = NET_IPV6_HOP_LIMIT, | ||
4126 | .procname = "hop_limit", | 4088 | .procname = "hop_limit", |
4127 | .data = &ipv6_devconf.hop_limit, | 4089 | .data = &ipv6_devconf.hop_limit, |
4128 | .maxlen = sizeof(int), | 4090 | .maxlen = sizeof(int), |
@@ -4130,7 +4092,6 @@ static struct addrconf_sysctl_table | |||
4130 | .proc_handler = proc_dointvec, | 4092 | .proc_handler = proc_dointvec, |
4131 | }, | 4093 | }, |
4132 | { | 4094 | { |
4133 | .ctl_name = NET_IPV6_MTU, | ||
4134 | .procname = "mtu", | 4095 | .procname = "mtu", |
4135 | .data = &ipv6_devconf.mtu6, | 4096 | .data = &ipv6_devconf.mtu6, |
4136 | .maxlen = sizeof(int), | 4097 | .maxlen = sizeof(int), |
@@ -4138,7 +4099,6 @@ static struct addrconf_sysctl_table | |||
4138 | .proc_handler = proc_dointvec, | 4099 | .proc_handler = proc_dointvec, |
4139 | }, | 4100 | }, |
4140 | { | 4101 | { |
4141 | .ctl_name = NET_IPV6_ACCEPT_RA, | ||
4142 | .procname = "accept_ra", | 4102 | .procname = "accept_ra", |
4143 | .data = &ipv6_devconf.accept_ra, | 4103 | .data = &ipv6_devconf.accept_ra, |
4144 | .maxlen = sizeof(int), | 4104 | .maxlen = sizeof(int), |
@@ -4146,7 +4106,6 @@ static struct addrconf_sysctl_table | |||
4146 | .proc_handler = proc_dointvec, | 4106 | .proc_handler = proc_dointvec, |
4147 | }, | 4107 | }, |
4148 | { | 4108 | { |
4149 | .ctl_name = NET_IPV6_ACCEPT_REDIRECTS, | ||
4150 | .procname = "accept_redirects", | 4109 | .procname = "accept_redirects", |
4151 | .data = &ipv6_devconf.accept_redirects, | 4110 | .data = &ipv6_devconf.accept_redirects, |
4152 | .maxlen = sizeof(int), | 4111 | .maxlen = sizeof(int), |
@@ -4154,7 +4113,6 @@ static struct addrconf_sysctl_table | |||
4154 | .proc_handler = proc_dointvec, | 4113 | .proc_handler = proc_dointvec, |
4155 | }, | 4114 | }, |
4156 | { | 4115 | { |
4157 | .ctl_name = NET_IPV6_AUTOCONF, | ||
4158 | .procname = "autoconf", | 4116 | .procname = "autoconf", |
4159 | .data = &ipv6_devconf.autoconf, | 4117 | .data = &ipv6_devconf.autoconf, |
4160 | .maxlen = sizeof(int), | 4118 | .maxlen = sizeof(int), |
@@ -4162,7 +4120,6 @@ static struct addrconf_sysctl_table | |||
4162 | .proc_handler = proc_dointvec, | 4120 | .proc_handler = proc_dointvec, |
4163 | }, | 4121 | }, |
4164 | { | 4122 | { |
4165 | .ctl_name = NET_IPV6_DAD_TRANSMITS, | ||
4166 | .procname = "dad_transmits", | 4123 | .procname = "dad_transmits", |
4167 | .data = &ipv6_devconf.dad_transmits, | 4124 | .data = &ipv6_devconf.dad_transmits, |
4168 | .maxlen = sizeof(int), | 4125 | .maxlen = sizeof(int), |
@@ -4170,7 +4127,6 @@ static struct addrconf_sysctl_table | |||
4170 | .proc_handler = proc_dointvec, | 4127 | .proc_handler = proc_dointvec, |
4171 | }, | 4128 | }, |
4172 | { | 4129 | { |
4173 | .ctl_name = NET_IPV6_RTR_SOLICITS, | ||
4174 | .procname = "router_solicitations", | 4130 | .procname = "router_solicitations", |
4175 | .data = &ipv6_devconf.rtr_solicits, | 4131 | .data = &ipv6_devconf.rtr_solicits, |
4176 | .maxlen = sizeof(int), | 4132 | .maxlen = sizeof(int), |
@@ -4178,25 +4134,20 @@ static struct addrconf_sysctl_table | |||
4178 | .proc_handler = proc_dointvec, | 4134 | .proc_handler = proc_dointvec, |
4179 | }, | 4135 | }, |
4180 | { | 4136 | { |
4181 | .ctl_name = NET_IPV6_RTR_SOLICIT_INTERVAL, | ||
4182 | .procname = "router_solicitation_interval", | 4137 | .procname = "router_solicitation_interval", |
4183 | .data = &ipv6_devconf.rtr_solicit_interval, | 4138 | .data = &ipv6_devconf.rtr_solicit_interval, |
4184 | .maxlen = sizeof(int), | 4139 | .maxlen = sizeof(int), |
4185 | .mode = 0644, | 4140 | .mode = 0644, |
4186 | .proc_handler = proc_dointvec_jiffies, | 4141 | .proc_handler = proc_dointvec_jiffies, |
4187 | .strategy = sysctl_jiffies, | ||
4188 | }, | 4142 | }, |
4189 | { | 4143 | { |
4190 | .ctl_name = NET_IPV6_RTR_SOLICIT_DELAY, | ||
4191 | .procname = "router_solicitation_delay", | 4144 | .procname = "router_solicitation_delay", |
4192 | .data = &ipv6_devconf.rtr_solicit_delay, | 4145 | .data = &ipv6_devconf.rtr_solicit_delay, |
4193 | .maxlen = sizeof(int), | 4146 | .maxlen = sizeof(int), |
4194 | .mode = 0644, | 4147 | .mode = 0644, |
4195 | .proc_handler = proc_dointvec_jiffies, | 4148 | .proc_handler = proc_dointvec_jiffies, |
4196 | .strategy = sysctl_jiffies, | ||
4197 | }, | 4149 | }, |
4198 | { | 4150 | { |
4199 | .ctl_name = NET_IPV6_FORCE_MLD_VERSION, | ||
4200 | .procname = "force_mld_version", | 4151 | .procname = "force_mld_version", |
4201 | .data = &ipv6_devconf.force_mld_version, | 4152 | .data = &ipv6_devconf.force_mld_version, |
4202 | .maxlen = sizeof(int), | 4153 | .maxlen = sizeof(int), |
@@ -4205,7 +4156,6 @@ static struct addrconf_sysctl_table | |||
4205 | }, | 4156 | }, |
4206 | #ifdef CONFIG_IPV6_PRIVACY | 4157 | #ifdef CONFIG_IPV6_PRIVACY |
4207 | { | 4158 | { |
4208 | .ctl_name = NET_IPV6_USE_TEMPADDR, | ||
4209 | .procname = "use_tempaddr", | 4159 | .procname = "use_tempaddr", |
4210 | .data = &ipv6_devconf.use_tempaddr, | 4160 | .data = &ipv6_devconf.use_tempaddr, |
4211 | .maxlen = sizeof(int), | 4161 | .maxlen = sizeof(int), |
@@ -4213,7 +4163,6 @@ static struct addrconf_sysctl_table | |||
4213 | .proc_handler = proc_dointvec, | 4163 | .proc_handler = proc_dointvec, |
4214 | }, | 4164 | }, |
4215 | { | 4165 | { |
4216 | .ctl_name = NET_IPV6_TEMP_VALID_LFT, | ||
4217 | .procname = "temp_valid_lft", | 4166 | .procname = "temp_valid_lft", |
4218 | .data = &ipv6_devconf.temp_valid_lft, | 4167 | .data = &ipv6_devconf.temp_valid_lft, |
4219 | .maxlen = sizeof(int), | 4168 | .maxlen = sizeof(int), |
@@ -4221,7 +4170,6 @@ static struct addrconf_sysctl_table | |||
4221 | .proc_handler = proc_dointvec, | 4170 | .proc_handler = proc_dointvec, |
4222 | }, | 4171 | }, |
4223 | { | 4172 | { |
4224 | .ctl_name = NET_IPV6_TEMP_PREFERED_LFT, | ||
4225 | .procname = "temp_prefered_lft", | 4173 | .procname = "temp_prefered_lft", |
4226 | .data = &ipv6_devconf.temp_prefered_lft, | 4174 | .data = &ipv6_devconf.temp_prefered_lft, |
4227 | .maxlen = sizeof(int), | 4175 | .maxlen = sizeof(int), |
@@ -4229,7 +4177,6 @@ static struct addrconf_sysctl_table | |||
4229 | .proc_handler = proc_dointvec, | 4177 | .proc_handler = proc_dointvec, |
4230 | }, | 4178 | }, |
4231 | { | 4179 | { |
4232 | .ctl_name = NET_IPV6_REGEN_MAX_RETRY, | ||
4233 | .procname = "regen_max_retry", | 4180 | .procname = "regen_max_retry", |
4234 | .data = &ipv6_devconf.regen_max_retry, | 4181 | .data = &ipv6_devconf.regen_max_retry, |
4235 | .maxlen = sizeof(int), | 4182 | .maxlen = sizeof(int), |
@@ -4237,7 +4184,6 @@ static struct addrconf_sysctl_table | |||
4237 | .proc_handler = proc_dointvec, | 4184 | .proc_handler = proc_dointvec, |
4238 | }, | 4185 | }, |
4239 | { | 4186 | { |
4240 | .ctl_name = NET_IPV6_MAX_DESYNC_FACTOR, | ||
4241 | .procname = "max_desync_factor", | 4187 | .procname = "max_desync_factor", |
4242 | .data = &ipv6_devconf.max_desync_factor, | 4188 | .data = &ipv6_devconf.max_desync_factor, |
4243 | .maxlen = sizeof(int), | 4189 | .maxlen = sizeof(int), |
@@ -4246,7 +4192,6 @@ static struct addrconf_sysctl_table | |||
4246 | }, | 4192 | }, |
4247 | #endif | 4193 | #endif |
4248 | { | 4194 | { |
4249 | .ctl_name = NET_IPV6_MAX_ADDRESSES, | ||
4250 | .procname = "max_addresses", | 4195 | .procname = "max_addresses", |
4251 | .data = &ipv6_devconf.max_addresses, | 4196 | .data = &ipv6_devconf.max_addresses, |
4252 | .maxlen = sizeof(int), | 4197 | .maxlen = sizeof(int), |
@@ -4254,7 +4199,6 @@ static struct addrconf_sysctl_table | |||
4254 | .proc_handler = proc_dointvec, | 4199 | .proc_handler = proc_dointvec, |
4255 | }, | 4200 | }, |
4256 | { | 4201 | { |
4257 | .ctl_name = NET_IPV6_ACCEPT_RA_DEFRTR, | ||
4258 | .procname = "accept_ra_defrtr", | 4202 | .procname = "accept_ra_defrtr", |
4259 | .data = &ipv6_devconf.accept_ra_defrtr, | 4203 | .data = &ipv6_devconf.accept_ra_defrtr, |
4260 | .maxlen = sizeof(int), | 4204 | .maxlen = sizeof(int), |
@@ -4262,7 +4206,6 @@ static struct addrconf_sysctl_table | |||
4262 | .proc_handler = proc_dointvec, | 4206 | .proc_handler = proc_dointvec, |
4263 | }, | 4207 | }, |
4264 | { | 4208 | { |
4265 | .ctl_name = NET_IPV6_ACCEPT_RA_PINFO, | ||
4266 | .procname = "accept_ra_pinfo", | 4209 | .procname = "accept_ra_pinfo", |
4267 | .data = &ipv6_devconf.accept_ra_pinfo, | 4210 | .data = &ipv6_devconf.accept_ra_pinfo, |
4268 | .maxlen = sizeof(int), | 4211 | .maxlen = sizeof(int), |
@@ -4271,7 +4214,6 @@ static struct addrconf_sysctl_table | |||
4271 | }, | 4214 | }, |
4272 | #ifdef CONFIG_IPV6_ROUTER_PREF | 4215 | #ifdef CONFIG_IPV6_ROUTER_PREF |
4273 | { | 4216 | { |
4274 | .ctl_name = NET_IPV6_ACCEPT_RA_RTR_PREF, | ||
4275 | .procname = "accept_ra_rtr_pref", | 4217 | .procname = "accept_ra_rtr_pref", |
4276 | .data = &ipv6_devconf.accept_ra_rtr_pref, | 4218 | .data = &ipv6_devconf.accept_ra_rtr_pref, |
4277 | .maxlen = sizeof(int), | 4219 | .maxlen = sizeof(int), |
@@ -4279,17 +4221,14 @@ static struct addrconf_sysctl_table | |||
4279 | .proc_handler = proc_dointvec, | 4221 | .proc_handler = proc_dointvec, |
4280 | }, | 4222 | }, |
4281 | { | 4223 | { |
4282 | .ctl_name = NET_IPV6_RTR_PROBE_INTERVAL, | ||
4283 | .procname = "router_probe_interval", | 4224 | .procname = "router_probe_interval", |
4284 | .data = &ipv6_devconf.rtr_probe_interval, | 4225 | .data = &ipv6_devconf.rtr_probe_interval, |
4285 | .maxlen = sizeof(int), | 4226 | .maxlen = sizeof(int), |
4286 | .mode = 0644, | 4227 | .mode = 0644, |
4287 | .proc_handler = proc_dointvec_jiffies, | 4228 | .proc_handler = proc_dointvec_jiffies, |
4288 | .strategy = sysctl_jiffies, | ||
4289 | }, | 4229 | }, |
4290 | #ifdef CONFIG_IPV6_ROUTE_INFO | 4230 | #ifdef CONFIG_IPV6_ROUTE_INFO |
4291 | { | 4231 | { |
4292 | .ctl_name = NET_IPV6_ACCEPT_RA_RT_INFO_MAX_PLEN, | ||
4293 | .procname = "accept_ra_rt_info_max_plen", | 4232 | .procname = "accept_ra_rt_info_max_plen", |
4294 | .data = &ipv6_devconf.accept_ra_rt_info_max_plen, | 4233 | .data = &ipv6_devconf.accept_ra_rt_info_max_plen, |
4295 | .maxlen = sizeof(int), | 4234 | .maxlen = sizeof(int), |
@@ -4299,7 +4238,6 @@ static struct addrconf_sysctl_table | |||
4299 | #endif | 4238 | #endif |
4300 | #endif | 4239 | #endif |
4301 | { | 4240 | { |
4302 | .ctl_name = NET_IPV6_PROXY_NDP, | ||
4303 | .procname = "proxy_ndp", | 4241 | .procname = "proxy_ndp", |
4304 | .data = &ipv6_devconf.proxy_ndp, | 4242 | .data = &ipv6_devconf.proxy_ndp, |
4305 | .maxlen = sizeof(int), | 4243 | .maxlen = sizeof(int), |
@@ -4307,7 +4245,6 @@ static struct addrconf_sysctl_table | |||
4307 | .proc_handler = proc_dointvec, | 4245 | .proc_handler = proc_dointvec, |
4308 | }, | 4246 | }, |
4309 | { | 4247 | { |
4310 | .ctl_name = NET_IPV6_ACCEPT_SOURCE_ROUTE, | ||
4311 | .procname = "accept_source_route", | 4248 | .procname = "accept_source_route", |
4312 | .data = &ipv6_devconf.accept_source_route, | 4249 | .data = &ipv6_devconf.accept_source_route, |
4313 | .maxlen = sizeof(int), | 4250 | .maxlen = sizeof(int), |
@@ -4316,7 +4253,6 @@ static struct addrconf_sysctl_table | |||
4316 | }, | 4253 | }, |
4317 | #ifdef CONFIG_IPV6_OPTIMISTIC_DAD | 4254 | #ifdef CONFIG_IPV6_OPTIMISTIC_DAD |
4318 | { | 4255 | { |
4319 | .ctl_name = CTL_UNNUMBERED, | ||
4320 | .procname = "optimistic_dad", | 4256 | .procname = "optimistic_dad", |
4321 | .data = &ipv6_devconf.optimistic_dad, | 4257 | .data = &ipv6_devconf.optimistic_dad, |
4322 | .maxlen = sizeof(int), | 4258 | .maxlen = sizeof(int), |
@@ -4327,7 +4263,6 @@ static struct addrconf_sysctl_table | |||
4327 | #endif | 4263 | #endif |
4328 | #ifdef CONFIG_IPV6_MROUTE | 4264 | #ifdef CONFIG_IPV6_MROUTE |
4329 | { | 4265 | { |
4330 | .ctl_name = CTL_UNNUMBERED, | ||
4331 | .procname = "mc_forwarding", | 4266 | .procname = "mc_forwarding", |
4332 | .data = &ipv6_devconf.mc_forwarding, | 4267 | .data = &ipv6_devconf.mc_forwarding, |
4333 | .maxlen = sizeof(int), | 4268 | .maxlen = sizeof(int), |
@@ -4336,16 +4271,13 @@ static struct addrconf_sysctl_table | |||
4336 | }, | 4271 | }, |
4337 | #endif | 4272 | #endif |
4338 | { | 4273 | { |
4339 | .ctl_name = CTL_UNNUMBERED, | ||
4340 | .procname = "disable_ipv6", | 4274 | .procname = "disable_ipv6", |
4341 | .data = &ipv6_devconf.disable_ipv6, | 4275 | .data = &ipv6_devconf.disable_ipv6, |
4342 | .maxlen = sizeof(int), | 4276 | .maxlen = sizeof(int), |
4343 | .mode = 0644, | 4277 | .mode = 0644, |
4344 | .proc_handler = addrconf_sysctl_disable, | 4278 | .proc_handler = addrconf_sysctl_disable, |
4345 | .strategy = sysctl_intvec, | ||
4346 | }, | 4279 | }, |
4347 | { | 4280 | { |
4348 | .ctl_name = CTL_UNNUMBERED, | ||
4349 | .procname = "accept_dad", | 4281 | .procname = "accept_dad", |
4350 | .data = &ipv6_devconf.accept_dad, | 4282 | .data = &ipv6_devconf.accept_dad, |
4351 | .maxlen = sizeof(int), | 4283 | .maxlen = sizeof(int), |
@@ -4353,13 +4285,13 @@ static struct addrconf_sysctl_table | |||
4353 | .proc_handler = proc_dointvec, | 4285 | .proc_handler = proc_dointvec, |
4354 | }, | 4286 | }, |
4355 | { | 4287 | { |
4356 | .ctl_name = 0, /* sentinel */ | 4288 | /* sentinel */ |
4357 | } | 4289 | } |
4358 | }, | 4290 | }, |
4359 | }; | 4291 | }; |
4360 | 4292 | ||
4361 | static int __addrconf_sysctl_register(struct net *net, char *dev_name, | 4293 | static int __addrconf_sysctl_register(struct net *net, char *dev_name, |
4362 | int ctl_name, struct inet6_dev *idev, struct ipv6_devconf *p) | 4294 | struct inet6_dev *idev, struct ipv6_devconf *p) |
4363 | { | 4295 | { |
4364 | int i; | 4296 | int i; |
4365 | struct addrconf_sysctl_table *t; | 4297 | struct addrconf_sysctl_table *t; |
@@ -4367,9 +4299,9 @@ static int __addrconf_sysctl_register(struct net *net, char *dev_name, | |||
4367 | #define ADDRCONF_CTL_PATH_DEV 3 | 4299 | #define ADDRCONF_CTL_PATH_DEV 3 |
4368 | 4300 | ||
4369 | struct ctl_path addrconf_ctl_path[] = { | 4301 | struct ctl_path addrconf_ctl_path[] = { |
4370 | { .procname = "net", .ctl_name = CTL_NET, }, | 4302 | { .procname = "net", }, |
4371 | { .procname = "ipv6", .ctl_name = NET_IPV6, }, | 4303 | { .procname = "ipv6", }, |
4372 | { .procname = "conf", .ctl_name = NET_IPV6_CONF, }, | 4304 | { .procname = "conf", }, |
4373 | { /* to be set */ }, | 4305 | { /* to be set */ }, |
4374 | { }, | 4306 | { }, |
4375 | }; | 4307 | }; |
@@ -4395,7 +4327,6 @@ static int __addrconf_sysctl_register(struct net *net, char *dev_name, | |||
4395 | goto free; | 4327 | goto free; |
4396 | 4328 | ||
4397 | addrconf_ctl_path[ADDRCONF_CTL_PATH_DEV].procname = t->dev_name; | 4329 | addrconf_ctl_path[ADDRCONF_CTL_PATH_DEV].procname = t->dev_name; |
4398 | addrconf_ctl_path[ADDRCONF_CTL_PATH_DEV].ctl_name = ctl_name; | ||
4399 | 4330 | ||
4400 | t->sysctl_header = register_net_sysctl_table(net, addrconf_ctl_path, | 4331 | t->sysctl_header = register_net_sysctl_table(net, addrconf_ctl_path, |
4401 | t->addrconf_vars); | 4332 | t->addrconf_vars); |
@@ -4431,10 +4362,9 @@ static void addrconf_sysctl_register(struct inet6_dev *idev) | |||
4431 | { | 4362 | { |
4432 | neigh_sysctl_register(idev->dev, idev->nd_parms, NET_IPV6, | 4363 | neigh_sysctl_register(idev->dev, idev->nd_parms, NET_IPV6, |
4433 | NET_IPV6_NEIGH, "ipv6", | 4364 | NET_IPV6_NEIGH, "ipv6", |
4434 | &ndisc_ifinfo_sysctl_change, | 4365 | &ndisc_ifinfo_sysctl_change); |
4435 | ndisc_ifinfo_sysctl_strategy); | ||
4436 | __addrconf_sysctl_register(dev_net(idev->dev), idev->dev->name, | 4366 | __addrconf_sysctl_register(dev_net(idev->dev), idev->dev->name, |
4437 | idev->dev->ifindex, idev, &idev->cnf); | 4367 | idev, &idev->cnf); |
4438 | } | 4368 | } |
4439 | 4369 | ||
4440 | static void addrconf_sysctl_unregister(struct inet6_dev *idev) | 4370 | static void addrconf_sysctl_unregister(struct inet6_dev *idev) |
@@ -4473,13 +4403,11 @@ static int addrconf_init_net(struct net *net) | |||
4473 | net->ipv6.devconf_dflt = dflt; | 4403 | net->ipv6.devconf_dflt = dflt; |
4474 | 4404 | ||
4475 | #ifdef CONFIG_SYSCTL | 4405 | #ifdef CONFIG_SYSCTL |
4476 | err = __addrconf_sysctl_register(net, "all", NET_PROTO_CONF_ALL, | 4406 | err = __addrconf_sysctl_register(net, "all", NULL, all); |
4477 | NULL, all); | ||
4478 | if (err < 0) | 4407 | if (err < 0) |
4479 | goto err_reg_all; | 4408 | goto err_reg_all; |
4480 | 4409 | ||
4481 | err = __addrconf_sysctl_register(net, "default", NET_PROTO_CONF_DEFAULT, | 4410 | err = __addrconf_sysctl_register(net, "default", NULL, dflt); |
4482 | NULL, dflt); | ||
4483 | if (err < 0) | 4411 | if (err < 0) |
4484 | goto err_reg_dflt; | 4412 | goto err_reg_dflt; |
4485 | #endif | 4413 | #endif |
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index f23ebbec0631..4ae661bc3677 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -942,15 +942,13 @@ EXPORT_SYMBOL(icmpv6_err_convert); | |||
942 | #ifdef CONFIG_SYSCTL | 942 | #ifdef CONFIG_SYSCTL |
943 | ctl_table ipv6_icmp_table_template[] = { | 943 | ctl_table ipv6_icmp_table_template[] = { |
944 | { | 944 | { |
945 | .ctl_name = NET_IPV6_ICMP_RATELIMIT, | ||
946 | .procname = "ratelimit", | 945 | .procname = "ratelimit", |
947 | .data = &init_net.ipv6.sysctl.icmpv6_time, | 946 | .data = &init_net.ipv6.sysctl.icmpv6_time, |
948 | .maxlen = sizeof(int), | 947 | .maxlen = sizeof(int), |
949 | .mode = 0644, | 948 | .mode = 0644, |
950 | .proc_handler = proc_dointvec_ms_jiffies, | 949 | .proc_handler = proc_dointvec_ms_jiffies, |
951 | .strategy = sysctl_ms_jiffies | ||
952 | }, | 950 | }, |
953 | { .ctl_name = 0 }, | 951 | { }, |
954 | }; | 952 | }; |
955 | 953 | ||
956 | struct ctl_table *ipv6_icmp_sysctl_init(struct net *net) | 954 | struct ctl_table *ipv6_icmp_sysctl_init(struct net *net) |
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index f74e4e2cdd06..3d0520e455d8 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1768,42 +1768,6 @@ int ndisc_ifinfo_sysctl_change(struct ctl_table *ctl, int write, void __user *bu | |||
1768 | return ret; | 1768 | return ret; |
1769 | } | 1769 | } |
1770 | 1770 | ||
1771 | int ndisc_ifinfo_sysctl_strategy(ctl_table *ctl, | ||
1772 | void __user *oldval, size_t __user *oldlenp, | ||
1773 | void __user *newval, size_t newlen) | ||
1774 | { | ||
1775 | struct net_device *dev = ctl->extra1; | ||
1776 | struct inet6_dev *idev; | ||
1777 | int ret; | ||
1778 | |||
1779 | if (ctl->ctl_name == NET_NEIGH_RETRANS_TIME || | ||
1780 | ctl->ctl_name == NET_NEIGH_REACHABLE_TIME) | ||
1781 | ndisc_warn_deprecated_sysctl(ctl, "procfs", dev ? dev->name : "default"); | ||
1782 | |||
1783 | switch (ctl->ctl_name) { | ||
1784 | case NET_NEIGH_REACHABLE_TIME: | ||
1785 | ret = sysctl_jiffies(ctl, oldval, oldlenp, newval, newlen); | ||
1786 | break; | ||
1787 | case NET_NEIGH_RETRANS_TIME_MS: | ||
1788 | case NET_NEIGH_REACHABLE_TIME_MS: | ||
1789 | ret = sysctl_ms_jiffies(ctl, oldval, oldlenp, newval, newlen); | ||
1790 | break; | ||
1791 | default: | ||
1792 | ret = 0; | ||
1793 | } | ||
1794 | |||
1795 | if (newval && newlen && ret > 0 && | ||
1796 | dev && (idev = in6_dev_get(dev)) != NULL) { | ||
1797 | if (ctl->ctl_name == NET_NEIGH_REACHABLE_TIME || | ||
1798 | ctl->ctl_name == NET_NEIGH_REACHABLE_TIME_MS) | ||
1799 | idev->nd_parms->reachable_time = neigh_rand_reach_time(idev->nd_parms->base_reachable_time); | ||
1800 | idev->tstamp = jiffies; | ||
1801 | inet6_ifinfo_notify(RTM_NEWLINK, idev); | ||
1802 | in6_dev_put(idev); | ||
1803 | } | ||
1804 | |||
1805 | return ret; | ||
1806 | } | ||
1807 | 1771 | ||
1808 | #endif | 1772 | #endif |
1809 | 1773 | ||
@@ -1857,8 +1821,7 @@ int __init ndisc_init(void) | |||
1857 | #ifdef CONFIG_SYSCTL | 1821 | #ifdef CONFIG_SYSCTL |
1858 | err = neigh_sysctl_register(NULL, &nd_tbl.parms, NET_IPV6, | 1822 | err = neigh_sysctl_register(NULL, &nd_tbl.parms, NET_IPV6, |
1859 | NET_IPV6_NEIGH, "ipv6", | 1823 | NET_IPV6_NEIGH, "ipv6", |
1860 | &ndisc_ifinfo_sysctl_change, | 1824 | &ndisc_ifinfo_sysctl_change); |
1861 | &ndisc_ifinfo_sysctl_strategy); | ||
1862 | if (err) | 1825 | if (err) |
1863 | goto out_unregister_pernet; | 1826 | goto out_unregister_pernet; |
1864 | #endif | 1827 | #endif |
diff --git a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c index 1cf3f0c6a959..14e52aa624c2 100644 --- a/net/ipv6/netfilter/ip6_queue.c +++ b/net/ipv6/netfilter/ip6_queue.c | |||
@@ -36,7 +36,6 @@ | |||
36 | 36 | ||
37 | #define IPQ_QMAX_DEFAULT 1024 | 37 | #define IPQ_QMAX_DEFAULT 1024 |
38 | #define IPQ_PROC_FS_NAME "ip6_queue" | 38 | #define IPQ_PROC_FS_NAME "ip6_queue" |
39 | #define NET_IPQ_QMAX 2088 | ||
40 | #define NET_IPQ_QMAX_NAME "ip6_queue_maxlen" | 39 | #define NET_IPQ_QMAX_NAME "ip6_queue_maxlen" |
41 | 40 | ||
42 | typedef int (*ipq_cmpfn)(struct nf_queue_entry *, unsigned long); | 41 | typedef int (*ipq_cmpfn)(struct nf_queue_entry *, unsigned long); |
@@ -518,14 +517,13 @@ static struct ctl_table_header *ipq_sysctl_header; | |||
518 | 517 | ||
519 | static ctl_table ipq_table[] = { | 518 | static ctl_table ipq_table[] = { |
520 | { | 519 | { |
521 | .ctl_name = NET_IPQ_QMAX, | ||
522 | .procname = NET_IPQ_QMAX_NAME, | 520 | .procname = NET_IPQ_QMAX_NAME, |
523 | .data = &queue_maxlen, | 521 | .data = &queue_maxlen, |
524 | .maxlen = sizeof(queue_maxlen), | 522 | .maxlen = sizeof(queue_maxlen), |
525 | .mode = 0644, | 523 | .mode = 0644, |
526 | .proc_handler = proc_dointvec | 524 | .proc_handler = proc_dointvec |
527 | }, | 525 | }, |
528 | { .ctl_name = 0 } | 526 | { } |
529 | }; | 527 | }; |
530 | #endif | 528 | #endif |
531 | 529 | ||
diff --git a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c index 642dcb127bab..2acadc8c7883 100644 --- a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +++ b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | |||
@@ -277,9 +277,7 @@ static struct ctl_table icmpv6_sysctl_table[] = { | |||
277 | .mode = 0644, | 277 | .mode = 0644, |
278 | .proc_handler = proc_dointvec_jiffies, | 278 | .proc_handler = proc_dointvec_jiffies, |
279 | }, | 279 | }, |
280 | { | 280 | { } |
281 | .ctl_name = 0 | ||
282 | } | ||
283 | }; | 281 | }; |
284 | #endif /* CONFIG_SYSCTL */ | 282 | #endif /* CONFIG_SYSCTL */ |
285 | 283 | ||
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index f3aba255ad9f..e0b9424fa1b2 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c | |||
@@ -83,7 +83,6 @@ struct ctl_table nf_ct_ipv6_sysctl_table[] = { | |||
83 | .proc_handler = proc_dointvec_jiffies, | 83 | .proc_handler = proc_dointvec_jiffies, |
84 | }, | 84 | }, |
85 | { | 85 | { |
86 | .ctl_name = NET_NF_CONNTRACK_FRAG6_LOW_THRESH, | ||
87 | .procname = "nf_conntrack_frag6_low_thresh", | 86 | .procname = "nf_conntrack_frag6_low_thresh", |
88 | .data = &nf_init_frags.low_thresh, | 87 | .data = &nf_init_frags.low_thresh, |
89 | .maxlen = sizeof(unsigned int), | 88 | .maxlen = sizeof(unsigned int), |
@@ -91,14 +90,13 @@ struct ctl_table nf_ct_ipv6_sysctl_table[] = { | |||
91 | .proc_handler = proc_dointvec, | 90 | .proc_handler = proc_dointvec, |
92 | }, | 91 | }, |
93 | { | 92 | { |
94 | .ctl_name = NET_NF_CONNTRACK_FRAG6_HIGH_THRESH, | ||
95 | .procname = "nf_conntrack_frag6_high_thresh", | 93 | .procname = "nf_conntrack_frag6_high_thresh", |
96 | .data = &nf_init_frags.high_thresh, | 94 | .data = &nf_init_frags.high_thresh, |
97 | .maxlen = sizeof(unsigned int), | 95 | .maxlen = sizeof(unsigned int), |
98 | .mode = 0644, | 96 | .mode = 0644, |
99 | .proc_handler = proc_dointvec, | 97 | .proc_handler = proc_dointvec, |
100 | }, | 98 | }, |
101 | { .ctl_name = 0 } | 99 | { } |
102 | }; | 100 | }; |
103 | #endif | 101 | #endif |
104 | 102 | ||
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index da5bd0ed83df..2499e9712031 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c | |||
@@ -636,7 +636,6 @@ static const struct inet6_protocol frag_protocol = | |||
636 | #ifdef CONFIG_SYSCTL | 636 | #ifdef CONFIG_SYSCTL |
637 | static struct ctl_table ip6_frags_ns_ctl_table[] = { | 637 | static struct ctl_table ip6_frags_ns_ctl_table[] = { |
638 | { | 638 | { |
639 | .ctl_name = NET_IPV6_IP6FRAG_HIGH_THRESH, | ||
640 | .procname = "ip6frag_high_thresh", | 639 | .procname = "ip6frag_high_thresh", |
641 | .data = &init_net.ipv6.frags.high_thresh, | 640 | .data = &init_net.ipv6.frags.high_thresh, |
642 | .maxlen = sizeof(int), | 641 | .maxlen = sizeof(int), |
@@ -644,7 +643,6 @@ static struct ctl_table ip6_frags_ns_ctl_table[] = { | |||
644 | .proc_handler = proc_dointvec | 643 | .proc_handler = proc_dointvec |
645 | }, | 644 | }, |
646 | { | 645 | { |
647 | .ctl_name = NET_IPV6_IP6FRAG_LOW_THRESH, | ||
648 | .procname = "ip6frag_low_thresh", | 646 | .procname = "ip6frag_low_thresh", |
649 | .data = &init_net.ipv6.frags.low_thresh, | 647 | .data = &init_net.ipv6.frags.low_thresh, |
650 | .maxlen = sizeof(int), | 648 | .maxlen = sizeof(int), |
@@ -652,26 +650,22 @@ static struct ctl_table ip6_frags_ns_ctl_table[] = { | |||
652 | .proc_handler = proc_dointvec | 650 | .proc_handler = proc_dointvec |
653 | }, | 651 | }, |
654 | { | 652 | { |
655 | .ctl_name = NET_IPV6_IP6FRAG_TIME, | ||
656 | .procname = "ip6frag_time", | 653 | .procname = "ip6frag_time", |
657 | .data = &init_net.ipv6.frags.timeout, | 654 | .data = &init_net.ipv6.frags.timeout, |
658 | .maxlen = sizeof(int), | 655 | .maxlen = sizeof(int), |
659 | .mode = 0644, | 656 | .mode = 0644, |
660 | .proc_handler = proc_dointvec_jiffies, | 657 | .proc_handler = proc_dointvec_jiffies, |
661 | .strategy = sysctl_jiffies, | ||
662 | }, | 658 | }, |
663 | { } | 659 | { } |
664 | }; | 660 | }; |
665 | 661 | ||
666 | static struct ctl_table ip6_frags_ctl_table[] = { | 662 | static struct ctl_table ip6_frags_ctl_table[] = { |
667 | { | 663 | { |
668 | .ctl_name = NET_IPV6_IP6FRAG_SECRET_INTERVAL, | ||
669 | .procname = "ip6frag_secret_interval", | 664 | .procname = "ip6frag_secret_interval", |
670 | .data = &ip6_frags.secret_interval, | 665 | .data = &ip6_frags.secret_interval, |
671 | .maxlen = sizeof(int), | 666 | .maxlen = sizeof(int), |
672 | .mode = 0644, | 667 | .mode = 0644, |
673 | .proc_handler = proc_dointvec_jiffies, | 668 | .proc_handler = proc_dointvec_jiffies, |
674 | .strategy = sysctl_jiffies | ||
675 | }, | 669 | }, |
676 | { } | 670 | { } |
677 | }; | 671 | }; |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index d6fe7646a8ff..6aa202e26f97 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2546,7 +2546,6 @@ ctl_table ipv6_route_table_template[] = { | |||
2546 | .proc_handler = ipv6_sysctl_rtcache_flush | 2546 | .proc_handler = ipv6_sysctl_rtcache_flush |
2547 | }, | 2547 | }, |
2548 | { | 2548 | { |
2549 | .ctl_name = NET_IPV6_ROUTE_GC_THRESH, | ||
2550 | .procname = "gc_thresh", | 2549 | .procname = "gc_thresh", |
2551 | .data = &ip6_dst_ops_template.gc_thresh, | 2550 | .data = &ip6_dst_ops_template.gc_thresh, |
2552 | .maxlen = sizeof(int), | 2551 | .maxlen = sizeof(int), |
@@ -2554,7 +2553,6 @@ ctl_table ipv6_route_table_template[] = { | |||
2554 | .proc_handler = proc_dointvec, | 2553 | .proc_handler = proc_dointvec, |
2555 | }, | 2554 | }, |
2556 | { | 2555 | { |
2557 | .ctl_name = NET_IPV6_ROUTE_MAX_SIZE, | ||
2558 | .procname = "max_size", | 2556 | .procname = "max_size", |
2559 | .data = &init_net.ipv6.sysctl.ip6_rt_max_size, | 2557 | .data = &init_net.ipv6.sysctl.ip6_rt_max_size, |
2560 | .maxlen = sizeof(int), | 2558 | .maxlen = sizeof(int), |
@@ -2562,69 +2560,55 @@ ctl_table ipv6_route_table_template[] = { | |||
2562 | .proc_handler = proc_dointvec, | 2560 | .proc_handler = proc_dointvec, |
2563 | }, | 2561 | }, |
2564 | { | 2562 | { |
2565 | .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL, | ||
2566 | .procname = "gc_min_interval", | 2563 | .procname = "gc_min_interval", |
2567 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, | 2564 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, |
2568 | .maxlen = sizeof(int), | 2565 | .maxlen = sizeof(int), |
2569 | .mode = 0644, | 2566 | .mode = 0644, |
2570 | .proc_handler = proc_dointvec_jiffies, | 2567 | .proc_handler = proc_dointvec_jiffies, |
2571 | .strategy = sysctl_jiffies, | ||
2572 | }, | 2568 | }, |
2573 | { | 2569 | { |
2574 | .ctl_name = NET_IPV6_ROUTE_GC_TIMEOUT, | ||
2575 | .procname = "gc_timeout", | 2570 | .procname = "gc_timeout", |
2576 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout, | 2571 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout, |
2577 | .maxlen = sizeof(int), | 2572 | .maxlen = sizeof(int), |
2578 | .mode = 0644, | 2573 | .mode = 0644, |
2579 | .proc_handler = proc_dointvec_jiffies, | 2574 | .proc_handler = proc_dointvec_jiffies, |
2580 | .strategy = sysctl_jiffies, | ||
2581 | }, | 2575 | }, |
2582 | { | 2576 | { |
2583 | .ctl_name = NET_IPV6_ROUTE_GC_INTERVAL, | ||
2584 | .procname = "gc_interval", | 2577 | .procname = "gc_interval", |
2585 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval, | 2578 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval, |
2586 | .maxlen = sizeof(int), | 2579 | .maxlen = sizeof(int), |
2587 | .mode = 0644, | 2580 | .mode = 0644, |
2588 | .proc_handler = proc_dointvec_jiffies, | 2581 | .proc_handler = proc_dointvec_jiffies, |
2589 | .strategy = sysctl_jiffies, | ||
2590 | }, | 2582 | }, |
2591 | { | 2583 | { |
2592 | .ctl_name = NET_IPV6_ROUTE_GC_ELASTICITY, | ||
2593 | .procname = "gc_elasticity", | 2584 | .procname = "gc_elasticity", |
2594 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity, | 2585 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity, |
2595 | .maxlen = sizeof(int), | 2586 | .maxlen = sizeof(int), |
2596 | .mode = 0644, | 2587 | .mode = 0644, |
2597 | .proc_handler = proc_dointvec_jiffies, | 2588 | .proc_handler = proc_dointvec_jiffies, |
2598 | .strategy = sysctl_jiffies, | ||
2599 | }, | 2589 | }, |
2600 | { | 2590 | { |
2601 | .ctl_name = NET_IPV6_ROUTE_MTU_EXPIRES, | ||
2602 | .procname = "mtu_expires", | 2591 | .procname = "mtu_expires", |
2603 | .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires, | 2592 | .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires, |
2604 | .maxlen = sizeof(int), | 2593 | .maxlen = sizeof(int), |
2605 | .mode = 0644, | 2594 | .mode = 0644, |
2606 | .proc_handler = proc_dointvec_jiffies, | 2595 | .proc_handler = proc_dointvec_jiffies, |
2607 | .strategy = sysctl_jiffies, | ||
2608 | }, | 2596 | }, |
2609 | { | 2597 | { |
2610 | .ctl_name = NET_IPV6_ROUTE_MIN_ADVMSS, | ||
2611 | .procname = "min_adv_mss", | 2598 | .procname = "min_adv_mss", |
2612 | .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss, | 2599 | .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss, |
2613 | .maxlen = sizeof(int), | 2600 | .maxlen = sizeof(int), |
2614 | .mode = 0644, | 2601 | .mode = 0644, |
2615 | .proc_handler = proc_dointvec_jiffies, | 2602 | .proc_handler = proc_dointvec_jiffies, |
2616 | .strategy = sysctl_jiffies, | ||
2617 | }, | 2603 | }, |
2618 | { | 2604 | { |
2619 | .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS, | ||
2620 | .procname = "gc_min_interval_ms", | 2605 | .procname = "gc_min_interval_ms", |
2621 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, | 2606 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, |
2622 | .maxlen = sizeof(int), | 2607 | .maxlen = sizeof(int), |
2623 | .mode = 0644, | 2608 | .mode = 0644, |
2624 | .proc_handler = proc_dointvec_ms_jiffies, | 2609 | .proc_handler = proc_dointvec_ms_jiffies, |
2625 | .strategy = sysctl_ms_jiffies, | ||
2626 | }, | 2610 | }, |
2627 | { .ctl_name = 0 } | 2611 | { } |
2628 | }; | 2612 | }; |
2629 | 2613 | ||
2630 | struct ctl_table *ipv6_route_sysctl_init(struct net *net) | 2614 | struct ctl_table *ipv6_route_sysctl_init(struct net *net) |
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 0dc6a4e5ed4a..c690736885b4 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c | |||
@@ -16,45 +16,41 @@ | |||
16 | 16 | ||
17 | static ctl_table ipv6_table_template[] = { | 17 | static ctl_table ipv6_table_template[] = { |
18 | { | 18 | { |
19 | .ctl_name = NET_IPV6_ROUTE, | ||
20 | .procname = "route", | 19 | .procname = "route", |
21 | .maxlen = 0, | 20 | .maxlen = 0, |
22 | .mode = 0555, | 21 | .mode = 0555, |
23 | .child = ipv6_route_table_template | 22 | .child = ipv6_route_table_template |
24 | }, | 23 | }, |
25 | { | 24 | { |
26 | .ctl_name = NET_IPV6_ICMP, | ||
27 | .procname = "icmp", | 25 | .procname = "icmp", |
28 | .maxlen = 0, | 26 | .maxlen = 0, |
29 | .mode = 0555, | 27 | .mode = 0555, |
30 | .child = ipv6_icmp_table_template | 28 | .child = ipv6_icmp_table_template |
31 | }, | 29 | }, |
32 | { | 30 | { |
33 | .ctl_name = NET_IPV6_BINDV6ONLY, | ||
34 | .procname = "bindv6only", | 31 | .procname = "bindv6only", |
35 | .data = &init_net.ipv6.sysctl.bindv6only, | 32 | .data = &init_net.ipv6.sysctl.bindv6only, |
36 | .maxlen = sizeof(int), | 33 | .maxlen = sizeof(int), |
37 | .mode = 0644, | 34 | .mode = 0644, |
38 | .proc_handler = proc_dointvec | 35 | .proc_handler = proc_dointvec |
39 | }, | 36 | }, |
40 | { .ctl_name = 0 } | 37 | { } |
41 | }; | 38 | }; |
42 | 39 | ||
43 | static ctl_table ipv6_rotable[] = { | 40 | static ctl_table ipv6_rotable[] = { |
44 | { | 41 | { |
45 | .ctl_name = NET_IPV6_MLD_MAX_MSF, | ||
46 | .procname = "mld_max_msf", | 42 | .procname = "mld_max_msf", |
47 | .data = &sysctl_mld_max_msf, | 43 | .data = &sysctl_mld_max_msf, |
48 | .maxlen = sizeof(int), | 44 | .maxlen = sizeof(int), |
49 | .mode = 0644, | 45 | .mode = 0644, |
50 | .proc_handler = proc_dointvec | 46 | .proc_handler = proc_dointvec |
51 | }, | 47 | }, |
52 | { .ctl_name = 0 } | 48 | { } |
53 | }; | 49 | }; |
54 | 50 | ||
55 | struct ctl_path net_ipv6_ctl_path[] = { | 51 | struct ctl_path net_ipv6_ctl_path[] = { |
56 | { .procname = "net", .ctl_name = CTL_NET, }, | 52 | { .procname = "net", }, |
57 | { .procname = "ipv6", .ctl_name = NET_IPV6, }, | 53 | { .procname = "ipv6", }, |
58 | { }, | 54 | { }, |
59 | }; | 55 | }; |
60 | EXPORT_SYMBOL_GPL(net_ipv6_ctl_path); | 56 | EXPORT_SYMBOL_GPL(net_ipv6_ctl_path); |
diff --git a/net/ipv6/xfrm6_policy.c b/net/ipv6/xfrm6_policy.c index 8ec3d45cd1d9..7254e3f899a7 100644 --- a/net/ipv6/xfrm6_policy.c +++ b/net/ipv6/xfrm6_policy.c | |||
@@ -309,7 +309,6 @@ static void xfrm6_policy_fini(void) | |||
309 | #ifdef CONFIG_SYSCTL | 309 | #ifdef CONFIG_SYSCTL |
310 | static struct ctl_table xfrm6_policy_table[] = { | 310 | static struct ctl_table xfrm6_policy_table[] = { |
311 | { | 311 | { |
312 | .ctl_name = CTL_UNNUMBERED, | ||
313 | .procname = "xfrm6_gc_thresh", | 312 | .procname = "xfrm6_gc_thresh", |
314 | .data = &xfrm6_dst_ops.gc_thresh, | 313 | .data = &xfrm6_dst_ops.gc_thresh, |
315 | .maxlen = sizeof(int), | 314 | .maxlen = sizeof(int), |