diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-12-04 09:46:40 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-12-04 09:46:40 +0000 |
commit | 801d62f6b26ca95b41b48c204dc0cf292d1bb53a (patch) | |
tree | bec2b8f12f88953af123147d0696d90116169e54 /sys/net/route.c | |
parent | c2571a94bba79d3c5bacd5863b9d265150e2bcb1 (diff) |
Since net/route.c r1.337 interface priority factors into route priority
when RTF_CONNECTED routes are added to the routing table.
Specify a route priority calculated in the same way when deleting such routes.
Makes route add and delete code paths consistent again.
ok mpi@
Diffstat (limited to 'sys/net/route.c')
-rw-r--r-- | sys/net/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 662743bea2f..a253e5f5b42 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.341 2016/12/02 11:19:17 mpi Exp $ */ +/* $OpenBSD: route.c,v 1.342 2016/12/04 09:46:39 stsp Exp $ */ /* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */ /* @@ -1270,7 +1270,7 @@ rt_ifa_del(struct ifaddr *ifa, int flags, struct sockaddr *dst) prio = RTP_LOCAL; if (flags & RTF_CONNECTED) - prio = RTP_CONNECTED; + prio = ifp->if_priority + RTP_CONNECTED; error = rtrequest_delete(&info, prio, ifp, &rt, rtableid); if (error == 0) { |