Skip to content

Commit

Permalink
IPv6: only update the lifetime of the relevant temporary address
Browse files Browse the repository at this point in the history
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: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Benoit Boissinot authored and David S. Miller committed Apr 2, 2008
1 parent 1905f6c commit c6fbfac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1831,6 +1831,9 @@ void addrconf_prefix_rcv(struct net_device *dev, u8 *opt, int len)
* 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 &&
Expand Down

0 comments on commit c6fbfac

Please sign in to comment.