diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/addrconf.c | 4 | ||||
-rw-r--r-- | net/ipv6/ndisc.c | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 647e6cba237d..3513cceba50a 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1803,7 +1803,7 @@ static struct inet6_dev *addrconf_add_dev(struct net_device *dev) | |||
1803 | return idev; | 1803 | return idev; |
1804 | } | 1804 | } |
1805 | 1805 | ||
1806 | void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len) | 1806 | void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len, bool sllao) |
1807 | { | 1807 | { |
1808 | struct prefix_info *pinfo; | 1808 | struct prefix_info *pinfo; |
1809 | __u32 valid_lft; | 1809 | __u32 valid_lft; |
@@ -1934,7 +1934,7 @@ ok: | |||
1934 | 1934 | ||
1935 | #ifdef CONFIG_IPV6_OPTIMISTIC_DAD | 1935 | #ifdef CONFIG_IPV6_OPTIMISTIC_DAD |
1936 | if (in6_dev->cnf.optimistic_dad && | 1936 | if (in6_dev->cnf.optimistic_dad && |
1937 | !net->ipv6.devconf_all->forwarding) | 1937 | !net->ipv6.devconf_all->forwarding && sllao) |
1938 | addr_flags = IFA_F_OPTIMISTIC; | 1938 | addr_flags = IFA_F_OPTIMISTIC; |
1939 | #endif | 1939 | #endif |
1940 | 1940 | ||
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c index 3b1fe4b3f3c6..d8f02ef88e59 100644 --- a/net/ipv6/ndisc.c +++ b/net/ipv6/ndisc.c | |||
@@ -1368,7 +1368,9 @@ skip_routeinfo: | |||
1368 | for (p = ndopts.nd_opts_pi; | 1368 | for (p = ndopts.nd_opts_pi; |
1369 | p; | 1369 | p; |
1370 | p = ndisc_next_option(p, ndopts.nd_opts_pi_end)) { | 1370 | p = ndisc_next_option(p, ndopts.nd_opts_pi_end)) { |
1371 | addrconf_prefix_rcv(skb->dev, (u8*)p, (p->nd_opt_len) << 3); | 1371 | addrconf_prefix_rcv(skb->dev, (u8 *)p, |
1372 | (p->nd_opt_len) << 3, | ||
1373 | ndopts.nd_opts_src_lladdr != NULL); | ||
1372 | } | 1374 | } |
1373 | } | 1375 | } |
1374 | 1376 | ||