]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV6]: Fix route lifetime.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 19 Dec 2005 22:02:45 +0000 (14:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Dec 2005 22:02:45 +0000 (14:02 -0800)
commit3b975db8055adbf7c6532265256828dbc4e4a363
tree854f73bd7862354eac94b624d436b59fdd5ffecb
parent1aa7d257397f495f3e99275e93fbd34b9405469b
[IPV6]: Fix route lifetime.

The route expiration time is stored in rt6i_expires in jiffies.
The argument of rt6_route_add() for adding a route is not the
expiration time in jiffies nor in clock_t, but the lifetime
(or time left before expiration) in clock_t.

Because of the confusion, we sometimes saw several strange errors
(FAILs) in TAHI IPv6 Ready Logo Phase-2 Self Test.
The symptoms were analyzed by Mitsuru Chinen <CHINEN@jp.ibm.com>.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
net/ipv6/route.c