summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2009-02-27 13:15:41 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2009-02-27 13:15:41 +0000
commit4ffe4df73cc73bd7586d6987334d5483c308d88c (patch)
treec270e08143e52ce1ed1cb5d2db1e1fe67a304596 /sys
parent267776fbd6fdb8ab90b21e05611fb0d46ed90c49 (diff)
Do not check the link state when installing a route. This bit was missing in
the backout/disabling of the route link state tracking done a few days ago. OK deraadt@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/route.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index cc8931836c1..ef71aca6dba 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.103 2009/02/03 16:42:54 michele Exp $ */
+/* $OpenBSD: route.c,v 1.104 2009/02/27 13:15:40 claudio Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -832,6 +832,7 @@ makeroute:
if (prio == 0)
prio = ifa->ifa_ifp->if_priority + RTP_STATIC;
rt->rt_priority = prio; /* init routing priority */
+#if 0
if ((LINK_STATE_IS_UP(ifa->ifa_ifp->if_link_state) ||
ifa->ifa_ifp->if_link_state == LINK_STATE_UNKNOWN) &&
ifa->ifa_ifp->if_flags & IFF_UP)
@@ -840,6 +841,7 @@ makeroute:
rt->rt_flags &= ~RTF_UP;
rt->rt_priority |= RTP_DOWN;
}
+#endif
LIST_INIT(&rt->rt_timer);
if (rt_setgate(rt, info->rti_info[RTAX_DST],
info->rti_info[RTAX_GATEWAY], tableid)) {