Subsystems (2)
Quoted 1 line
From
ca1c566f51eeff4195b483addb86c6a73eaa37e0Mon Sep 17 00:00:00 2001
From: Glenn Wurster <[email protected]>
Date: Tue, 21 Sep 2010 16:59:00 -0400
Subject: [PATCH 2.6.36-rc3 1/1] IPv6: Create temporary address if none exists.
Cc: "David S. Miller" <[email protected]>,
Alexey Kuznetsov <[email protected]>,
"Pekka Savola (ipv6)" <[email protected]>,
James Morris <[email protected]>,
Hideaki YOSHIFUJI <[email protected]>,
Patrick McHardy <[email protected]>,
Stephen Hemminger <[email protected]>,
Eric Dumazet <[email protected]>,
Herbert Xu <[email protected]>,
[email protected]
To: [email protected]
X-Length: 1674
X-UID: 10
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <[email protected]>
If privacy extentions are enabled, but no current temporary address exists, then create one when we get a router advertisement.
--- net/ipv6/addrconf.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
net/ipv6/addrconf.c +1 -1
@@ -2022,10 +2022,11 @@ ok: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);