Skip to contentSkip to conversation

IPv6: Create temporary address if none exists.

PATCH Superseded Glenn Wurster 2 participants 2 messages Sep 22, 2010 – Sep 25, 2010

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IPv6: Create temporary address if none exists.

If privacy extentions are enabled, but no current temporary address exists, then create one when we get a router advertisement.

Sending again because of a previous e-mail header issue.

---
 net/ipv6/addrconf.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
net/ipv6/addrconf.c +1 -1
index ab70a3f..cfee6ae 100644
@@ -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);

maintainer
#1 lore raw

Your email client is corrupting the patches you are sending.

Long lines are being chopped up, etc.

This makes your patches unusable, turn off all text formatting in your email client and resend these patches again.

Thanks.