Commit c6fbfac2 authored by Benoit Boissinot's avatar Benoit Boissinot Committed by David S. Miller
Browse files

IPv6: only update the lifetime of the relevant temporary address



When receiving a prefix information from a routeur, only update the
lifetimes of the temporary address associated with that prefix.

Otherwise if one deprecated prefix is advertized, all your temporary
addresses will become deprecated.
Signed-off-by: default avatarBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Acked-by: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1905f6c7
......@@ -1831,6 +1831,9 @@ ok:
* lifetimes of an existing temporary address
* when processing a Prefix Information Option.
*/
if (ifp != ift->ifpub)
continue;
spin_lock(&ift->lock);
flags = ift->flags;
if (ift->valid_lft > valid_lft &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment