ipv6 addrconf: fix preferred lifetime state-changing behavior while valid_lft is...
authorYasushi Asano <yasushi.asano@jp.fujitsu.com>
Tue, 31 Dec 2013 03:04:19 +0000 (12:04 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Jan 2014 00:34:40 +0000 (19:34 -0500)
commitfad8da3e085ddf5e661090033287f1a5d62858fc
tree0fe549cf177e560ace8ae557fc138d6355726803
parent4d231b76eef6c4a6bd9c96769e191517765942cb
ipv6 addrconf: fix preferred lifetime state-changing behavior while valid_lft is infinity

Fixed a problem with setting the lifetime of an IPv6
address. When setting preferred_lft to a value not zero or
infinity, while valid_lft is infinity(0xffffffff) preferred
lifetime is set to forever and does not update. Therefore
preferred lifetime never becomes deprecated. valid lifetime
and preferred lifetime should be set independently, even if
valid lifetime is infinity, preferred lifetime must expire
correctly (meaning it must eventually become deprecated)

Signed-off-by: Yasushi Asano <yasushi.asano@jp.fujitsu.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c