Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279414
b: refs/heads/master
c: e6bff99
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed Jan 4, 2012
1 parent 01e2243 commit 2d31573
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02a9098ede0dc7e28c16a03fa7fba86a05219478
refs/heads/master: e6bff995f8fe78f74cbe8f14bf6a31f3560b9ce4
3 changes: 2 additions & 1 deletion trunk/include/net/addrconf.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ extern int ipv6_chk_mcast_addr(struct net_device *dev,
const struct in6_addr *src_addr);
extern int ipv6_is_mld(struct sk_buff *skb, int nexthdr);

extern void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len);
extern void addrconf_prefix_rcv(struct net_device *dev,
u8 *opt, int len, bool sllao);

/*
* anycast prototypes (anycast.c)
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ static struct inet6_dev *addrconf_add_dev(struct net_device *dev)
return idev;
}

void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len)
void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len, bool sllao)
{
struct prefix_info *pinfo;
__u32 valid_lft;
Expand Down Expand Up @@ -1934,7 +1934,7 @@ void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len)

#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
if (in6_dev->cnf.optimistic_dad &&
!net->ipv6.devconf_all->forwarding)
!net->ipv6.devconf_all->forwarding && sllao)
addr_flags = IFA_F_OPTIMISTIC;
#endif

Expand Down
4 changes: 3 additions & 1 deletion trunk/net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,9 @@ static void ndisc_router_discovery(struct sk_buff *skb)
for (p = ndopts.nd_opts_pi;
p;
p = ndisc_next_option(p, ndopts.nd_opts_pi_end)) {
addrconf_prefix_rcv(skb->dev, (u8*)p, (p->nd_opt_len) << 3);
addrconf_prefix_rcv(skb->dev, (u8 *)p,
(p->nd_opt_len) << 3,
ndopts.nd_opts_src_lladdr != NULL);
}
}

Expand Down

0 comments on commit 2d31573

Please sign in to comment.