diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-09-22 17:43:49 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:20:25 -0400 |
commit | fbea49e1e2404baa2d88ab47e2db89e49551b53b (patch) | |
tree | 7e11746b350048e04867a9f67b843057428c2ef0 /net/ipv6/addrconf.c | |
parent | 62dd93181aaa1d5a501a9cebcb254f44b8a48af7 (diff) |
[IPV6] NDISC: Add proxy_ndp sysctl.
We do not always need proxy NDP functionality even we
enable forwarding.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 1e5a296d0a82..825a291d5aa5 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -175,6 +175,7 @@ struct ipv6_devconf ipv6_devconf __read_mostly = { | |||
175 | .accept_ra_rt_info_max_plen = 0, | 175 | .accept_ra_rt_info_max_plen = 0, |
176 | #endif | 176 | #endif |
177 | #endif | 177 | #endif |
178 | .proxy_ndp = 0, | ||
178 | }; | 179 | }; |
179 | 180 | ||
180 | static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = { | 181 | static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = { |
@@ -205,6 +206,7 @@ static struct ipv6_devconf ipv6_devconf_dflt __read_mostly = { | |||
205 | .accept_ra_rt_info_max_plen = 0, | 206 | .accept_ra_rt_info_max_plen = 0, |
206 | #endif | 207 | #endif |
207 | #endif | 208 | #endif |
209 | .proxy_ndp = 0, | ||
208 | }; | 210 | }; |
209 | 211 | ||
210 | /* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */ | 212 | /* IPv6 Wildcard Address and Loopback Address defined by RFC2553 */ |
@@ -3337,6 +3339,7 @@ static void inline ipv6_store_devconf(struct ipv6_devconf *cnf, | |||
3337 | array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen; | 3339 | array[DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN] = cnf->accept_ra_rt_info_max_plen; |
3338 | #endif | 3340 | #endif |
3339 | #endif | 3341 | #endif |
3342 | array[DEVCONF_PROXY_NDP] = cnf->proxy_ndp; | ||
3340 | } | 3343 | } |
3341 | 3344 | ||
3342 | /* Maximum length of ifinfomsg attributes */ | 3345 | /* Maximum length of ifinfomsg attributes */ |
@@ -3860,6 +3863,14 @@ static struct addrconf_sysctl_table | |||
3860 | #endif | 3863 | #endif |
3861 | #endif | 3864 | #endif |
3862 | { | 3865 | { |
3866 | .ctl_name = NET_IPV6_PROXY_NDP, | ||
3867 | .procname = "proxy_ndp", | ||
3868 | .data = &ipv6_devconf.proxy_ndp, | ||
3869 | .maxlen = sizeof(int), | ||
3870 | .mode = 0644, | ||
3871 | .proc_handler = &proc_dointvec, | ||
3872 | }, | ||
3873 | { | ||
3863 | .ctl_name = 0, /* sentinel */ | 3874 | .ctl_name = 0, /* sentinel */ |
3864 | } | 3875 | } |
3865 | }, | 3876 | }, |