[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>
This commit is contained in:
YOSHIFUJI Hideaki
2006-03-20 16:55:26 -08:00
committed by David S. Miller
parent 65f5c7c114
commit c4fd30eb18
5 changed files with 23 additions and 3 deletions

View File

@@ -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;