Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aed65501 authored by Glenn Wurster's avatar Glenn Wurster Committed by David S. Miller
Browse files

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.

Signed-off-by: default avatarGlenn Wurster <gwurster@scs.carleton.ca>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ded85aa8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2021,10 +2021,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);