summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-12-04 09:46:40 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-12-04 09:46:40 +0000
commit801d62f6b26ca95b41b48c204dc0cf292d1bb53a (patch)
treebec2b8f12f88953af123147d0696d90116169e54 /sys/net
parentc2571a94bba79d3c5bacd5863b9d265150e2bcb1 (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')
-rw-r--r--sys/net/route.c4
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) {