diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-02-01 13:47:23 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-02-01 13:47:23 +0000 |
commit | edd8392012cd829502d6e56cd312ca6b3ee6b274 (patch) | |
tree | 591bbeb44762d5a5176286951918bc79adf77475 /sys/net/route.c | |
parent | cbc46aaa16feda09bc31adc876f14a4e40fcc9df (diff) |
Initialize rmx_expire in rt_timer_add() so that dynamic routes (e.g. PMTU)
show a correct expire time in route(8). OK and idea mpf@ looks good henning@
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 4214d8ae52d..5497fa883c3 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.62 2005/11/29 02:59:42 jolan Exp $ */ +/* $OpenBSD: route.c,v 1.63 2006/02/01 13:47:22 claudio Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1084,6 +1084,7 @@ rt_timer_add(struct rtentry *rt, void (*func)(struct rtentry *, long current_time; current_time = time_uptime; + rt->rt_rmx.rmx_expire = time_second + queue->rtq_timeout; /* * If there's already a timer with this action, destroy it before |