diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2006-03-20 16:55:26 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-03-20 16:55:26 -0800 |
commit | c4fd30eb18666972230689eb30e8f90844bce635 (patch) | |
tree | f1b8daddeb21d7d1390fa1ae820bf2b5ffa8d276 /net/ipv6/ndisc.c | |
parent | 65f5c7c1143fb8eed5bc7e7d8c926346e00fe3c0 (diff) | |
download | linux-c4fd30eb18666972230689eb30e8f90844bce635.tar.bz2 |
[IPV6]: ADDRCONF: Add accept_ra_pinfo sysctl.
This controls whether we accept Prefix Information in RAs.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r-- | net/ipv6/ndisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index e17116796059..3b56be85234e 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c @@ -1191,7 +1191,7 @@ skip_defrtr: NEIGH_UPDATE_F_ISROUTER); } - if (ndopts.nd_opts_pi) { + if (in6_dev->cnf.accept_ra_pinfo && ndopts.nd_opts_pi) { struct nd_opt_hdr *p; for (p = ndopts.nd_opts_pi; p; |