diff options
author | 2009-02-27 13:15:40 +0000 | |
---|---|---|
committer | 2009-02-27 13:15:40 +0000 | |
commit | 88e0f297046af6f83044f356841b4d61f21c3583 (patch) | |
tree | b833b7c774ab1d0ddfa5ba85b87dd065ce915b43 | |
parent | fix quick reuse of tcp states. (diff) | |
download | wireguard-openbsd-88e0f297046af6f83044f356841b4d61f21c3583.tar.xz wireguard-openbsd-88e0f297046af6f83044f356841b4d61f21c3583.zip |
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@
-rw-r--r-- | sys/net/route.c | 4 |
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)) { |