Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 377445
b: refs/heads/master
c: dc84829
h: refs/heads/master
i:
  377443: 8d1f43a
v: v3
  • Loading branch information
Hannes Frederic Sowa authored and David S. Miller committed Jun 25, 2013
1 parent fe322de commit 8c51643
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 4c7ab054ab4f5d63625508ed6f8a607184cae7c2
refs/heads/master: dc8482926e2b1006ed6962ac8388cb92aed4efc7
9 changes: 4 additions & 5 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -4306,6 +4306,7 @@ static int inet6_set_iftoken(struct inet6_dev *idev, struct in6_addr *token)
struct inet6_ifaddr *ifp;
struct net_device *dev = idev->dev;
bool update_rs = false;
struct in6_addr ll_addr;

if (token == NULL)
return -EINVAL;
Expand All @@ -4325,11 +4326,9 @@ static int inet6_set_iftoken(struct inet6_dev *idev, struct in6_addr *token)

write_unlock_bh(&idev->lock);

if (!idev->dead && (idev->if_flags & IF_READY)) {
struct in6_addr ll_addr;

ipv6_get_lladdr(dev, &ll_addr, IFA_F_TENTATIVE |
IFA_F_OPTIMISTIC);
if (!idev->dead && (idev->if_flags & IF_READY) &&
!ipv6_get_lladdr(dev, &ll_addr, IFA_F_TENTATIVE |
IFA_F_OPTIMISTIC)) {

/* If we're not ready, then normal ifup will take care
* of this. Otherwise, we need to request our rs here.
Expand Down

0 comments on commit 8c51643

Please sign in to comment.