diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-03 21:21:05 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-03 21:21:05 -0500 |
commit | 6d9f239a1edb31d6133230f478fd1dc2da338ec5 (patch) | |
tree | 305fa0da95a49db4e342f3f3042f8be0968b03ce /net/ipv6 | |
parent | 6cf3f41e6c08bca6641a695449791c38a25f35ff (diff) |
net: '&' redux
I want to compile out proc_* and sysctl_* handlers totally and
stub them to NULL depending on config options, however usage of &
will prevent this, since taking adress of NULL pointer will break
compilation.
So, drop & in front of every ->proc_handler and every ->strategy
handler, it was never needed in fact.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 62 | ||||
-rw-r--r-- | net/ipv6/icmp.c | 4 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | 2 | ||||
-rw-r--r-- | net/ipv6/netfilter/nf_conntrack_reasm.c | 6 | ||||
-rw-r--r-- | net/ipv6/reassembly.c | 12 | ||||
-rw-r--r-- | net/ipv6/route.c | 34 | ||||
-rw-r--r-- | net/ipv6/sysctl_net_ipv6.c | 4 |
7 files changed, 62 insertions, 62 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index ff7ae05f72e1..07ee758de9e1 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -4030,8 +4030,8 @@ static struct addrconf_sysctl_table | |||
4030 | .data = &ipv6_devconf.forwarding, | 4030 | .data = &ipv6_devconf.forwarding, |
4031 | .maxlen = sizeof(int), | 4031 | .maxlen = sizeof(int), |
4032 | .mode = 0644, | 4032 | .mode = 0644, |
4033 | .proc_handler = &addrconf_sysctl_forward, | 4033 | .proc_handler = addrconf_sysctl_forward, |
4034 | .strategy = &addrconf_sysctl_forward_strategy, | 4034 | .strategy = addrconf_sysctl_forward_strategy, |
4035 | }, | 4035 | }, |
4036 | { | 4036 | { |
4037 | .ctl_name = NET_IPV6_HOP_LIMIT, | 4037 | .ctl_name = NET_IPV6_HOP_LIMIT, |
@@ -4047,7 +4047,7 @@ static struct addrconf_sysctl_table | |||
4047 | .data = &ipv6_devconf.mtu6, | 4047 | .data = &ipv6_devconf.mtu6, |
4048 | .maxlen = sizeof(int), | 4048 | .maxlen = sizeof(int), |
4049 | .mode = 0644, | 4049 | .mode = 0644, |
4050 | .proc_handler = &proc_dointvec, | 4050 | .proc_handler = proc_dointvec, |
4051 | }, | 4051 | }, |
4052 | { | 4052 | { |
4053 | .ctl_name = NET_IPV6_ACCEPT_RA, | 4053 | .ctl_name = NET_IPV6_ACCEPT_RA, |
@@ -4055,7 +4055,7 @@ static struct addrconf_sysctl_table | |||
4055 | .data = &ipv6_devconf.accept_ra, | 4055 | .data = &ipv6_devconf.accept_ra, |
4056 | .maxlen = sizeof(int), | 4056 | .maxlen = sizeof(int), |
4057 | .mode = 0644, | 4057 | .mode = 0644, |
4058 | .proc_handler = &proc_dointvec, | 4058 | .proc_handler = proc_dointvec, |
4059 | }, | 4059 | }, |
4060 | { | 4060 | { |
4061 | .ctl_name = NET_IPV6_ACCEPT_REDIRECTS, | 4061 | .ctl_name = NET_IPV6_ACCEPT_REDIRECTS, |
@@ -4063,7 +4063,7 @@ static struct addrconf_sysctl_table | |||
4063 | .data = &ipv6_devconf.accept_redirects, | 4063 | .data = &ipv6_devconf.accept_redirects, |
4064 | .maxlen = sizeof(int), | 4064 | .maxlen = sizeof(int), |
4065 | .mode = 0644, | 4065 | .mode = 0644, |
4066 | .proc_handler = &proc_dointvec, | 4066 | .proc_handler = proc_dointvec, |
4067 | }, | 4067 | }, |
4068 | { | 4068 | { |
4069 | .ctl_name = NET_IPV6_AUTOCONF, | 4069 | .ctl_name = NET_IPV6_AUTOCONF, |
@@ -4071,7 +4071,7 @@ static struct addrconf_sysctl_table | |||
4071 | .data = &ipv6_devconf.autoconf, | 4071 | .data = &ipv6_devconf.autoconf, |
4072 | .maxlen = sizeof(int), | 4072 | .maxlen = sizeof(int), |
4073 | .mode = 0644, | 4073 | .mode = 0644, |
4074 | .proc_handler = &proc_dointvec, | 4074 | .proc_handler = proc_dointvec, |
4075 | }, | 4075 | }, |
4076 | { | 4076 | { |
4077 | .ctl_name = NET_IPV6_DAD_TRANSMITS, | 4077 | .ctl_name = NET_IPV6_DAD_TRANSMITS, |
@@ -4079,7 +4079,7 @@ static struct addrconf_sysctl_table | |||
4079 | .data = &ipv6_devconf.dad_transmits, | 4079 | .data = &ipv6_devconf.dad_transmits, |
4080 | .maxlen = sizeof(int), | 4080 | .maxlen = sizeof(int), |
4081 | .mode = 0644, | 4081 | .mode = 0644, |
4082 | .proc_handler = &proc_dointvec, | 4082 | .proc_handler = proc_dointvec, |
4083 | }, | 4083 | }, |
4084 | { | 4084 | { |
4085 | .ctl_name = NET_IPV6_RTR_SOLICITS, | 4085 | .ctl_name = NET_IPV6_RTR_SOLICITS, |
@@ -4087,7 +4087,7 @@ static struct addrconf_sysctl_table | |||
4087 | .data = &ipv6_devconf.rtr_solicits, | 4087 | .data = &ipv6_devconf.rtr_solicits, |
4088 | .maxlen = sizeof(int), | 4088 | .maxlen = sizeof(int), |
4089 | .mode = 0644, | 4089 | .mode = 0644, |
4090 | .proc_handler = &proc_dointvec, | 4090 | .proc_handler = proc_dointvec, |
4091 | }, | 4091 | }, |
4092 | { | 4092 | { |
4093 | .ctl_name = NET_IPV6_RTR_SOLICIT_INTERVAL, | 4093 | .ctl_name = NET_IPV6_RTR_SOLICIT_INTERVAL, |
@@ -4095,8 +4095,8 @@ static struct addrconf_sysctl_table | |||
4095 | .data = &ipv6_devconf.rtr_solicit_interval, | 4095 | .data = &ipv6_devconf.rtr_solicit_interval, |
4096 | .maxlen = sizeof(int), | 4096 | .maxlen = sizeof(int), |
4097 | .mode = 0644, | 4097 | .mode = 0644, |
4098 | .proc_handler = &proc_dointvec_jiffies, | 4098 | .proc_handler = proc_dointvec_jiffies, |
4099 | .strategy = &sysctl_jiffies, | 4099 | .strategy = sysctl_jiffies, |
4100 | }, | 4100 | }, |
4101 | { | 4101 | { |
4102 | .ctl_name = NET_IPV6_RTR_SOLICIT_DELAY, | 4102 | .ctl_name = NET_IPV6_RTR_SOLICIT_DELAY, |
@@ -4104,8 +4104,8 @@ static struct addrconf_sysctl_table | |||
4104 | .data = &ipv6_devconf.rtr_solicit_delay, | 4104 | .data = &ipv6_devconf.rtr_solicit_delay, |
4105 | .maxlen = sizeof(int), | 4105 | .maxlen = sizeof(int), |
4106 | .mode = 0644, | 4106 | .mode = 0644, |
4107 | .proc_handler = &proc_dointvec_jiffies, | 4107 | .proc_handler = proc_dointvec_jiffies, |
4108 | .strategy = &sysctl_jiffies, | 4108 | .strategy = sysctl_jiffies, |
4109 | }, | 4109 | }, |
4110 | { | 4110 | { |
4111 | .ctl_name = NET_IPV6_FORCE_MLD_VERSION, | 4111 | .ctl_name = NET_IPV6_FORCE_MLD_VERSION, |
@@ -4113,7 +4113,7 @@ static struct addrconf_sysctl_table | |||
4113 | .data = &ipv6_devconf.force_mld_version, | 4113 | .data = &ipv6_devconf.force_mld_version, |
4114 | .maxlen = sizeof(int), | 4114 | .maxlen = sizeof(int), |
4115 | .mode = 0644, | 4115 | .mode = 0644, |
4116 | .proc_handler = &proc_dointvec, | 4116 | .proc_handler = proc_dointvec, |
4117 | }, | 4117 | }, |
4118 | #ifdef CONFIG_IPV6_PRIVACY | 4118 | #ifdef CONFIG_IPV6_PRIVACY |
4119 | { | 4119 | { |
@@ -4122,7 +4122,7 @@ static struct addrconf_sysctl_table | |||
4122 | .data = &ipv6_devconf.use_tempaddr, | 4122 | .data = &ipv6_devconf.use_tempaddr, |
4123 | .maxlen = sizeof(int), | 4123 | .maxlen = sizeof(int), |
4124 | .mode = 0644, | 4124 | .mode = 0644, |
4125 | .proc_handler = &proc_dointvec, | 4125 | .proc_handler = proc_dointvec, |
4126 | }, | 4126 | }, |
4127 | { | 4127 | { |
4128 | .ctl_name = NET_IPV6_TEMP_VALID_LFT, | 4128 | .ctl_name = NET_IPV6_TEMP_VALID_LFT, |
@@ -4130,7 +4130,7 @@ static struct addrconf_sysctl_table | |||
4130 | .data = &ipv6_devconf.temp_valid_lft, | 4130 | .data = &ipv6_devconf.temp_valid_lft, |
4131 | .maxlen = sizeof(int), | 4131 | .maxlen = sizeof(int), |
4132 | .mode = 0644, | 4132 | .mode = 0644, |
4133 | .proc_handler = &proc_dointvec, | 4133 | .proc_handler = proc_dointvec, |
4134 | }, | 4134 | }, |
4135 | { | 4135 | { |
4136 | .ctl_name = NET_IPV6_TEMP_PREFERED_LFT, | 4136 | .ctl_name = NET_IPV6_TEMP_PREFERED_LFT, |
@@ -4138,7 +4138,7 @@ static struct addrconf_sysctl_table | |||
4138 | .data = &ipv6_devconf.temp_prefered_lft, | 4138 | .data = &ipv6_devconf.temp_prefered_lft, |
4139 | .maxlen = sizeof(int), | 4139 | .maxlen = sizeof(int), |
4140 | .mode = 0644, | 4140 | .mode = 0644, |
4141 | .proc_handler = &proc_dointvec, | 4141 | .proc_handler = proc_dointvec, |
4142 | }, | 4142 | }, |
4143 | { | 4143 | { |
4144 | .ctl_name = NET_IPV6_REGEN_MAX_RETRY, | 4144 | .ctl_name = NET_IPV6_REGEN_MAX_RETRY, |
@@ -4146,7 +4146,7 @@ static struct addrconf_sysctl_table | |||
4146 | .data = &ipv6_devconf.regen_max_retry, | 4146 | .data = &ipv6_devconf.regen_max_retry, |
4147 | .maxlen = sizeof(int), | 4147 | .maxlen = sizeof(int), |
4148 | .mode = 0644, | 4148 | .mode = 0644, |
4149 | .proc_handler = &proc_dointvec, | 4149 | .proc_handler = proc_dointvec, |
4150 | }, | 4150 | }, |
4151 | { | 4151 | { |
4152 | .ctl_name = NET_IPV6_MAX_DESYNC_FACTOR, | 4152 | .ctl_name = NET_IPV6_MAX_DESYNC_FACTOR, |
@@ -4154,7 +4154,7 @@ static struct addrconf_sysctl_table | |||
4154 | .data = &ipv6_devconf.max_desync_factor, | 4154 | .data = &ipv6_devconf.max_desync_factor, |
4155 | .maxlen = sizeof(int), | 4155 | .maxlen = sizeof(int), |
4156 | .mode = 0644, | 4156 | .mode = 0644, |
4157 | .proc_handler = &proc_dointvec, | 4157 | .proc_handler = proc_dointvec, |
4158 | }, | 4158 | }, |
4159 | #endif | 4159 | #endif |
4160 | { | 4160 | { |
@@ -4163,7 +4163,7 @@ static struct addrconf_sysctl_table | |||
4163 | .data = &ipv6_devconf.max_addresses, | 4163 | .data = &ipv6_devconf.max_addresses, |
4164 | .maxlen = sizeof(int), | 4164 | .maxlen = sizeof(int), |
4165 | .mode = 0644, | 4165 | .mode = 0644, |
4166 | .proc_handler = &proc_dointvec, | 4166 | .proc_handler = proc_dointvec, |
4167 | }, | 4167 | }, |
4168 | { | 4168 | { |
4169 | .ctl_name = NET_IPV6_ACCEPT_RA_DEFRTR, | 4169 | .ctl_name = NET_IPV6_ACCEPT_RA_DEFRTR, |
@@ -4171,7 +4171,7 @@ static struct addrconf_sysctl_table | |||
4171 | .data = &ipv6_devconf.accept_ra_defrtr, | 4171 | .data = &ipv6_devconf.accept_ra_defrtr, |
4172 | .maxlen = sizeof(int), | 4172 | .maxlen = sizeof(int), |
4173 | .mode = 0644, | 4173 | .mode = 0644, |
4174 | .proc_handler = &proc_dointvec, | 4174 | .proc_handler = proc_dointvec, |
4175 | }, | 4175 | }, |
4176 | { | 4176 | { |
4177 | .ctl_name = NET_IPV6_ACCEPT_RA_PINFO, | 4177 | .ctl_name = NET_IPV6_ACCEPT_RA_PINFO, |
@@ -4179,7 +4179,7 @@ static struct addrconf_sysctl_table | |||
4179 | .data = &ipv6_devconf.accept_ra_pinfo, | 4179 | .data = &ipv6_devconf.accept_ra_pinfo, |
4180 | .maxlen = sizeof(int), | 4180 | .maxlen = sizeof(int), |
4181 | .mode = 0644, | 4181 | .mode = 0644, |
4182 | .proc_handler = &proc_dointvec, | 4182 | .proc_handler = proc_dointvec, |
4183 | }, | 4183 | }, |
4184 | #ifdef CONFIG_IPV6_ROUTER_PREF | 4184 | #ifdef CONFIG_IPV6_ROUTER_PREF |
4185 | { | 4185 | { |
@@ -4188,7 +4188,7 @@ static struct addrconf_sysctl_table | |||
4188 | .data = &ipv6_devconf.accept_ra_rtr_pref, | 4188 | .data = &ipv6_devconf.accept_ra_rtr_pref, |
4189 | .maxlen = sizeof(int), | 4189 | .maxlen = sizeof(int), |
4190 | .mode = 0644, | 4190 | .mode = 0644, |
4191 | .proc_handler = &proc_dointvec, | 4191 | .proc_handler = proc_dointvec, |
4192 | }, | 4192 | }, |
4193 | { | 4193 | { |
4194 | .ctl_name = NET_IPV6_RTR_PROBE_INTERVAL, | 4194 | .ctl_name = NET_IPV6_RTR_PROBE_INTERVAL, |
@@ -4196,8 +4196,8 @@ static struct addrconf_sysctl_table | |||
4196 | .data = &ipv6_devconf.rtr_probe_interval, | 4196 | .data = &ipv6_devconf.rtr_probe_interval, |
4197 | .maxlen = sizeof(int), | 4197 | .maxlen = sizeof(int), |
4198 | .mode = 0644, | 4198 | .mode = 0644, |
4199 | .proc_handler = &proc_dointvec_jiffies, | 4199 | .proc_handler = proc_dointvec_jiffies, |
4200 | .strategy = &sysctl_jiffies, | 4200 | .strategy = sysctl_jiffies, |
4201 | }, | 4201 | }, |
4202 | #ifdef CONFIG_IPV6_ROUTE_INFO | 4202 | #ifdef CONFIG_IPV6_ROUTE_INFO |
4203 | { | 4203 | { |
@@ -4206,7 +4206,7 @@ static struct addrconf_sysctl_table | |||
4206 | .data = &ipv6_devconf.accept_ra_rt_info_max_plen, | 4206 | .data = &ipv6_devconf.accept_ra_rt_info_max_plen, |
4207 | .maxlen = sizeof(int), | 4207 | .maxlen = sizeof(int), |
4208 | .mode = 0644, | 4208 | .mode = 0644, |
4209 | .proc_handler = &proc_dointvec, | 4209 | .proc_handler = proc_dointvec, |
4210 | }, | 4210 | }, |
4211 | #endif | 4211 | #endif |
4212 | #endif | 4212 | #endif |
@@ -4216,7 +4216,7 @@ static struct addrconf_sysctl_table | |||
4216 | .data = &ipv6_devconf.proxy_ndp, | 4216 | .data = &ipv6_devconf.proxy_ndp, |
4217 | .maxlen = sizeof(int), | 4217 | .maxlen = sizeof(int), |
4218 | .mode = 0644, | 4218 | .mode = 0644, |
4219 | .proc_handler = &proc_dointvec, | 4219 | .proc_handler = proc_dointvec, |
4220 | }, | 4220 | }, |
4221 | { | 4221 | { |
4222 | .ctl_name = NET_IPV6_ACCEPT_SOURCE_ROUTE, | 4222 | .ctl_name = NET_IPV6_ACCEPT_SOURCE_ROUTE, |
@@ -4224,7 +4224,7 @@ static struct addrconf_sysctl_table | |||
4224 | .data = &ipv6_devconf.accept_source_route, | 4224 | .data = &ipv6_devconf.accept_source_route, |
4225 | .maxlen = sizeof(int), | 4225 | .maxlen = sizeof(int), |
4226 | .mode = 0644, | 4226 | .mode = 0644, |
4227 | .proc_handler = &proc_dointvec, | 4227 | .proc_handler = proc_dointvec, |
4228 | }, | 4228 | }, |
4229 | #ifdef CONFIG_IPV6_OPTIMISTIC_DAD | 4229 | #ifdef CONFIG_IPV6_OPTIMISTIC_DAD |
4230 | { | 4230 | { |
@@ -4233,7 +4233,7 @@ static struct addrconf_sysctl_table | |||
4233 | .data = &ipv6_devconf.optimistic_dad, | 4233 | .data = &ipv6_devconf.optimistic_dad, |
4234 | .maxlen = sizeof(int), | 4234 | .maxlen = sizeof(int), |
4235 | .mode = 0644, | 4235 | .mode = 0644, |
4236 | .proc_handler = &proc_dointvec, | 4236 | .proc_handler = proc_dointvec, |
4237 | 4237 | ||
4238 | }, | 4238 | }, |
4239 | #endif | 4239 | #endif |
@@ -4244,7 +4244,7 @@ static struct addrconf_sysctl_table | |||
4244 | .data = &ipv6_devconf.mc_forwarding, | 4244 | .data = &ipv6_devconf.mc_forwarding, |
4245 | .maxlen = sizeof(int), | 4245 | .maxlen = sizeof(int), |
4246 | .mode = 0644, | 4246 | .mode = 0644, |
4247 | .proc_handler = &proc_dointvec, | 4247 | .proc_handler = proc_dointvec, |
4248 | }, | 4248 | }, |
4249 | #endif | 4249 | #endif |
4250 | { | 4250 | { |
@@ -4253,7 +4253,7 @@ static struct addrconf_sysctl_table | |||
4253 | .data = &ipv6_devconf.disable_ipv6, | 4253 | .data = &ipv6_devconf.disable_ipv6, |
4254 | .maxlen = sizeof(int), | 4254 | .maxlen = sizeof(int), |
4255 | .mode = 0644, | 4255 | .mode = 0644, |
4256 | .proc_handler = &proc_dointvec, | 4256 | .proc_handler = proc_dointvec, |
4257 | }, | 4257 | }, |
4258 | { | 4258 | { |
4259 | .ctl_name = CTL_UNNUMBERED, | 4259 | .ctl_name = CTL_UNNUMBERED, |
@@ -4261,7 +4261,7 @@ static struct addrconf_sysctl_table | |||
4261 | .data = &ipv6_devconf.accept_dad, | 4261 | .data = &ipv6_devconf.accept_dad, |
4262 | .maxlen = sizeof(int), | 4262 | .maxlen = sizeof(int), |
4263 | .mode = 0644, | 4263 | .mode = 0644, |
4264 | .proc_handler = &proc_dointvec, | 4264 | .proc_handler = proc_dointvec, |
4265 | }, | 4265 | }, |
4266 | { | 4266 | { |
4267 | .ctl_name = 0, /* sentinel */ | 4267 | .ctl_name = 0, /* sentinel */ |
diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c index 3c2821f9b529..be351009fd03 100644 --- a/net/ipv6/icmp.c +++ b/net/ipv6/icmp.c | |||
@@ -956,8 +956,8 @@ ctl_table ipv6_icmp_table_template[] = { | |||
956 | .data = &init_net.ipv6.sysctl.icmpv6_time, | 956 | .data = &init_net.ipv6.sysctl.icmpv6_time, |
957 | .maxlen = sizeof(int), | 957 | .maxlen = sizeof(int), |
958 | .mode = 0644, | 958 | .mode = 0644, |
959 | .proc_handler = &proc_dointvec_ms_jiffies, | 959 | .proc_handler = proc_dointvec_ms_jiffies, |
960 | .strategy = &sysctl_ms_jiffies | 960 | .strategy = sysctl_ms_jiffies |
961 | }, | 961 | }, |
962 | { .ctl_name = 0 }, | 962 | { .ctl_name = 0 }, |
963 | }; | 963 | }; |
diff --git a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c index 05726177903f..bd52151d31e9 100644 --- a/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +++ b/net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | |||
@@ -253,7 +253,7 @@ static struct ctl_table icmpv6_sysctl_table[] = { | |||
253 | .data = &nf_ct_icmpv6_timeout, | 253 | .data = &nf_ct_icmpv6_timeout, |
254 | .maxlen = sizeof(unsigned int), | 254 | .maxlen = sizeof(unsigned int), |
255 | .mode = 0644, | 255 | .mode = 0644, |
256 | .proc_handler = &proc_dointvec_jiffies, | 256 | .proc_handler = proc_dointvec_jiffies, |
257 | }, | 257 | }, |
258 | { | 258 | { |
259 | .ctl_name = 0 | 259 | .ctl_name = 0 |
diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c index 9967ac7a01a8..ed4d79a9e4a6 100644 --- a/net/ipv6/netfilter/nf_conntrack_reasm.c +++ b/net/ipv6/netfilter/nf_conntrack_reasm.c | |||
@@ -80,7 +80,7 @@ struct ctl_table nf_ct_ipv6_sysctl_table[] = { | |||
80 | .data = &nf_init_frags.timeout, | 80 | .data = &nf_init_frags.timeout, |
81 | .maxlen = sizeof(unsigned int), | 81 | .maxlen = sizeof(unsigned int), |
82 | .mode = 0644, | 82 | .mode = 0644, |
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, | 86 | .ctl_name = NET_NF_CONNTRACK_FRAG6_LOW_THRESH, |
@@ -88,7 +88,7 @@ struct ctl_table nf_ct_ipv6_sysctl_table[] = { | |||
88 | .data = &nf_init_frags.low_thresh, | 88 | .data = &nf_init_frags.low_thresh, |
89 | .maxlen = sizeof(unsigned int), | 89 | .maxlen = sizeof(unsigned int), |
90 | .mode = 0644, | 90 | .mode = 0644, |
91 | .proc_handler = &proc_dointvec, | 91 | .proc_handler = proc_dointvec, |
92 | }, | 92 | }, |
93 | { | 93 | { |
94 | .ctl_name = NET_NF_CONNTRACK_FRAG6_HIGH_THRESH, | 94 | .ctl_name = NET_NF_CONNTRACK_FRAG6_HIGH_THRESH, |
@@ -96,7 +96,7 @@ struct ctl_table nf_ct_ipv6_sysctl_table[] = { | |||
96 | .data = &nf_init_frags.high_thresh, | 96 | .data = &nf_init_frags.high_thresh, |
97 | .maxlen = sizeof(unsigned int), | 97 | .maxlen = sizeof(unsigned int), |
98 | .mode = 0644, | 98 | .mode = 0644, |
99 | .proc_handler = &proc_dointvec, | 99 | .proc_handler = proc_dointvec, |
100 | }, | 100 | }, |
101 | { .ctl_name = 0 } | 101 | { .ctl_name = 0 } |
102 | }; | 102 | }; |
diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c index af12de071f4c..3c575118fca5 100644 --- a/net/ipv6/reassembly.c +++ b/net/ipv6/reassembly.c | |||
@@ -642,7 +642,7 @@ static struct ctl_table ip6_frags_ns_ctl_table[] = { | |||
642 | .data = &init_net.ipv6.frags.high_thresh, | 642 | .data = &init_net.ipv6.frags.high_thresh, |
643 | .maxlen = sizeof(int), | 643 | .maxlen = sizeof(int), |
644 | .mode = 0644, | 644 | .mode = 0644, |
645 | .proc_handler = &proc_dointvec | 645 | .proc_handler = proc_dointvec |
646 | }, | 646 | }, |
647 | { | 647 | { |
648 | .ctl_name = NET_IPV6_IP6FRAG_LOW_THRESH, | 648 | .ctl_name = NET_IPV6_IP6FRAG_LOW_THRESH, |
@@ -650,7 +650,7 @@ static struct ctl_table ip6_frags_ns_ctl_table[] = { | |||
650 | .data = &init_net.ipv6.frags.low_thresh, | 650 | .data = &init_net.ipv6.frags.low_thresh, |
651 | .maxlen = sizeof(int), | 651 | .maxlen = sizeof(int), |
652 | .mode = 0644, | 652 | .mode = 0644, |
653 | .proc_handler = &proc_dointvec | 653 | .proc_handler = proc_dointvec |
654 | }, | 654 | }, |
655 | { | 655 | { |
656 | .ctl_name = NET_IPV6_IP6FRAG_TIME, | 656 | .ctl_name = NET_IPV6_IP6FRAG_TIME, |
@@ -658,8 +658,8 @@ static struct ctl_table ip6_frags_ns_ctl_table[] = { | |||
658 | .data = &init_net.ipv6.frags.timeout, | 658 | .data = &init_net.ipv6.frags.timeout, |
659 | .maxlen = sizeof(int), | 659 | .maxlen = sizeof(int), |
660 | .mode = 0644, | 660 | .mode = 0644, |
661 | .proc_handler = &proc_dointvec_jiffies, | 661 | .proc_handler = proc_dointvec_jiffies, |
662 | .strategy = &sysctl_jiffies, | 662 | .strategy = sysctl_jiffies, |
663 | }, | 663 | }, |
664 | { } | 664 | { } |
665 | }; | 665 | }; |
@@ -671,8 +671,8 @@ static struct ctl_table ip6_frags_ctl_table[] = { | |||
671 | .data = &ip6_frags.secret_interval, | 671 | .data = &ip6_frags.secret_interval, |
672 | .maxlen = sizeof(int), | 672 | .maxlen = sizeof(int), |
673 | .mode = 0644, | 673 | .mode = 0644, |
674 | .proc_handler = &proc_dointvec_jiffies, | 674 | .proc_handler = proc_dointvec_jiffies, |
675 | .strategy = &sysctl_jiffies | 675 | .strategy = sysctl_jiffies |
676 | }, | 676 | }, |
677 | { } | 677 | { } |
678 | }; | 678 | }; |
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index d69fa462d3f0..4d40dc214b2d 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c | |||
@@ -2499,7 +2499,7 @@ ctl_table ipv6_route_table_template[] = { | |||
2499 | .data = &init_net.ipv6.sysctl.flush_delay, | 2499 | .data = &init_net.ipv6.sysctl.flush_delay, |
2500 | .maxlen = sizeof(int), | 2500 | .maxlen = sizeof(int), |
2501 | .mode = 0200, | 2501 | .mode = 0200, |
2502 | .proc_handler = &ipv6_sysctl_rtcache_flush | 2502 | .proc_handler = ipv6_sysctl_rtcache_flush |
2503 | }, | 2503 | }, |
2504 | { | 2504 | { |
2505 | .ctl_name = NET_IPV6_ROUTE_GC_THRESH, | 2505 | .ctl_name = NET_IPV6_ROUTE_GC_THRESH, |
@@ -2507,7 +2507,7 @@ ctl_table ipv6_route_table_template[] = { | |||
2507 | .data = &ip6_dst_ops_template.gc_thresh, | 2507 | .data = &ip6_dst_ops_template.gc_thresh, |
2508 | .maxlen = sizeof(int), | 2508 | .maxlen = sizeof(int), |
2509 | .mode = 0644, | 2509 | .mode = 0644, |
2510 | .proc_handler = &proc_dointvec, | 2510 | .proc_handler = proc_dointvec, |
2511 | }, | 2511 | }, |
2512 | { | 2512 | { |
2513 | .ctl_name = NET_IPV6_ROUTE_MAX_SIZE, | 2513 | .ctl_name = NET_IPV6_ROUTE_MAX_SIZE, |
@@ -2515,7 +2515,7 @@ ctl_table ipv6_route_table_template[] = { | |||
2515 | .data = &init_net.ipv6.sysctl.ip6_rt_max_size, | 2515 | .data = &init_net.ipv6.sysctl.ip6_rt_max_size, |
2516 | .maxlen = sizeof(int), | 2516 | .maxlen = sizeof(int), |
2517 | .mode = 0644, | 2517 | .mode = 0644, |
2518 | .proc_handler = &proc_dointvec, | 2518 | .proc_handler = proc_dointvec, |
2519 | }, | 2519 | }, |
2520 | { | 2520 | { |
2521 | .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL, | 2521 | .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL, |
@@ -2523,8 +2523,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2523 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, | 2523 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, |
2524 | .maxlen = sizeof(int), | 2524 | .maxlen = sizeof(int), |
2525 | .mode = 0644, | 2525 | .mode = 0644, |
2526 | .proc_handler = &proc_dointvec_jiffies, | 2526 | .proc_handler = proc_dointvec_jiffies, |
2527 | .strategy = &sysctl_jiffies, | 2527 | .strategy = sysctl_jiffies, |
2528 | }, | 2528 | }, |
2529 | { | 2529 | { |
2530 | .ctl_name = NET_IPV6_ROUTE_GC_TIMEOUT, | 2530 | .ctl_name = NET_IPV6_ROUTE_GC_TIMEOUT, |
@@ -2532,8 +2532,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2532 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout, | 2532 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_timeout, |
2533 | .maxlen = sizeof(int), | 2533 | .maxlen = sizeof(int), |
2534 | .mode = 0644, | 2534 | .mode = 0644, |
2535 | .proc_handler = &proc_dointvec_jiffies, | 2535 | .proc_handler = proc_dointvec_jiffies, |
2536 | .strategy = &sysctl_jiffies, | 2536 | .strategy = sysctl_jiffies, |
2537 | }, | 2537 | }, |
2538 | { | 2538 | { |
2539 | .ctl_name = NET_IPV6_ROUTE_GC_INTERVAL, | 2539 | .ctl_name = NET_IPV6_ROUTE_GC_INTERVAL, |
@@ -2541,8 +2541,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2541 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval, | 2541 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_interval, |
2542 | .maxlen = sizeof(int), | 2542 | .maxlen = sizeof(int), |
2543 | .mode = 0644, | 2543 | .mode = 0644, |
2544 | .proc_handler = &proc_dointvec_jiffies, | 2544 | .proc_handler = proc_dointvec_jiffies, |
2545 | .strategy = &sysctl_jiffies, | 2545 | .strategy = sysctl_jiffies, |
2546 | }, | 2546 | }, |
2547 | { | 2547 | { |
2548 | .ctl_name = NET_IPV6_ROUTE_GC_ELASTICITY, | 2548 | .ctl_name = NET_IPV6_ROUTE_GC_ELASTICITY, |
@@ -2550,8 +2550,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2550 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity, | 2550 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_elasticity, |
2551 | .maxlen = sizeof(int), | 2551 | .maxlen = sizeof(int), |
2552 | .mode = 0644, | 2552 | .mode = 0644, |
2553 | .proc_handler = &proc_dointvec_jiffies, | 2553 | .proc_handler = proc_dointvec_jiffies, |
2554 | .strategy = &sysctl_jiffies, | 2554 | .strategy = sysctl_jiffies, |
2555 | }, | 2555 | }, |
2556 | { | 2556 | { |
2557 | .ctl_name = NET_IPV6_ROUTE_MTU_EXPIRES, | 2557 | .ctl_name = NET_IPV6_ROUTE_MTU_EXPIRES, |
@@ -2559,8 +2559,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2559 | .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires, | 2559 | .data = &init_net.ipv6.sysctl.ip6_rt_mtu_expires, |
2560 | .maxlen = sizeof(int), | 2560 | .maxlen = sizeof(int), |
2561 | .mode = 0644, | 2561 | .mode = 0644, |
2562 | .proc_handler = &proc_dointvec_jiffies, | 2562 | .proc_handler = proc_dointvec_jiffies, |
2563 | .strategy = &sysctl_jiffies, | 2563 | .strategy = sysctl_jiffies, |
2564 | }, | 2564 | }, |
2565 | { | 2565 | { |
2566 | .ctl_name = NET_IPV6_ROUTE_MIN_ADVMSS, | 2566 | .ctl_name = NET_IPV6_ROUTE_MIN_ADVMSS, |
@@ -2568,8 +2568,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2568 | .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss, | 2568 | .data = &init_net.ipv6.sysctl.ip6_rt_min_advmss, |
2569 | .maxlen = sizeof(int), | 2569 | .maxlen = sizeof(int), |
2570 | .mode = 0644, | 2570 | .mode = 0644, |
2571 | .proc_handler = &proc_dointvec_jiffies, | 2571 | .proc_handler = proc_dointvec_jiffies, |
2572 | .strategy = &sysctl_jiffies, | 2572 | .strategy = sysctl_jiffies, |
2573 | }, | 2573 | }, |
2574 | { | 2574 | { |
2575 | .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS, | 2575 | .ctl_name = NET_IPV6_ROUTE_GC_MIN_INTERVAL_MS, |
@@ -2577,8 +2577,8 @@ ctl_table ipv6_route_table_template[] = { | |||
2577 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, | 2577 | .data = &init_net.ipv6.sysctl.ip6_rt_gc_min_interval, |
2578 | .maxlen = sizeof(int), | 2578 | .maxlen = sizeof(int), |
2579 | .mode = 0644, | 2579 | .mode = 0644, |
2580 | .proc_handler = &proc_dointvec_ms_jiffies, | 2580 | .proc_handler = proc_dointvec_ms_jiffies, |
2581 | .strategy = &sysctl_ms_jiffies, | 2581 | .strategy = sysctl_ms_jiffies, |
2582 | }, | 2582 | }, |
2583 | { .ctl_name = 0 } | 2583 | { .ctl_name = 0 } |
2584 | }; | 2584 | }; |
diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c index 587f8f60c489..9048fe7e7ea7 100644 --- a/net/ipv6/sysctl_net_ipv6.c +++ b/net/ipv6/sysctl_net_ipv6.c | |||
@@ -35,7 +35,7 @@ static ctl_table ipv6_table_template[] = { | |||
35 | .data = &init_net.ipv6.sysctl.bindv6only, | 35 | .data = &init_net.ipv6.sysctl.bindv6only, |
36 | .maxlen = sizeof(int), | 36 | .maxlen = sizeof(int), |
37 | .mode = 0644, | 37 | .mode = 0644, |
38 | .proc_handler = &proc_dointvec | 38 | .proc_handler = proc_dointvec |
39 | }, | 39 | }, |
40 | { .ctl_name = 0 } | 40 | { .ctl_name = 0 } |
41 | }; | 41 | }; |
@@ -47,7 +47,7 @@ static ctl_table ipv6_table[] = { | |||
47 | .data = &sysctl_mld_max_msf, | 47 | .data = &sysctl_mld_max_msf, |
48 | .maxlen = sizeof(int), | 48 | .maxlen = sizeof(int), |
49 | .mode = 0644, | 49 | .mode = 0644, |
50 | .proc_handler = &proc_dointvec | 50 | .proc_handler = proc_dointvec |
51 | }, | 51 | }, |
52 | { .ctl_name = 0 } | 52 | { .ctl_name = 0 } |
53 | }; | 53 | }; |