• YOSHIFUJI Hideaki's avatar
    [IPV6]: Fix route lifetime. · 3dd4bc68
    YOSHIFUJI Hideaki authored
    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: default avatarYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    3dd4bc68
route.c 49.4 KB