Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218449
b: refs/heads/master
c: aed6550
h: refs/heads/master
i:
  218447: 92ff7fa
v: v3
  • Loading branch information
Glenn Wurster authored and David S. Miller committed Oct 26, 2010
1 parent 87091c0 commit e53f413
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: ded85aa86bff953190cb893fceeecaadcab53a80
refs/heads/master: aed65501e8c072b52c5b4dc807cd938659329673
5 changes: 3 additions & 2 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -2021,10 +2021,11 @@ void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len)
ipv6_ifa_notify(0, ift);
}

if (create && in6_dev->cnf.use_tempaddr > 0) {
if ((create || list_empty(&in6_dev->tempaddr_list)) && in6_dev->cnf.use_tempaddr > 0) {
/*
* When a new public address is created as described in [ADDRCONF],
* also create a new temporary address.
* also create a new temporary address. Also create a temporary
* address if it's enabled but no temporary address currently exists.
*/
read_unlock_bh(&in6_dev->lock);
ipv6_create_tempaddr(ifp, NULL);
Expand Down

0 comments on commit e53f413

Please sign in to comment.