Hi,
When adding a route, expiration attribute may be 0. In my understanding,
it means the route never expires and rt6i_expires should be 0, and not
the current time. If right, attached patch should fix the issue.
Regards,
Jean-Mickael
Signed-off-by: [EMAIL PROTECTED]
--- route.c.orig Wed Jan 25 16:12:52 2006
+++ route.c Wed Jan 25 16:13:49 2006
@@ -948,7 +948,10 @@
}
rt->u.dst.obsolete = -1;
- rt->rt6i_expires = jiffies + clock_t_to_jiffies(rtmsg->rtmsg_info);
+ if (rtmsg->rtmsg_info == 0)
+ rt->rt6i_expires = 0;
+ else
+ rt->rt6i_expires = jiffies +
clock_t_to_jiffies(rtmsg->rtmsg_info);
if (nlh && (r = NLMSG_DATA(nlh))) {
rt->rt6i_protocol = r->rtm_protocol;
} else {