summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/kroute.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bgpd/kroute.c')
-rw-r--r--usr.sbin/bgpd/kroute.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index be4811d132a..ed5405db314 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.218 2018/07/10 13:06:28 benno Exp $ */
+/* $OpenBSD: kroute.c,v 1.219 2018/07/11 14:08:46 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1127,6 +1127,10 @@ kr_net_match(struct ktable *kt, struct kroute *kr)
case NETWORK_MRTCLONE:
/* can not happen */
break;
+ case NETWORK_PRIORITY:
+ if (kr->priority == xn->net.priority)
+ return (xn);
+ break;
}
}
return (NULL);
@@ -1163,6 +1167,10 @@ kr_net_match6(struct ktable *kt, struct kroute6 *kr6)
case NETWORK_MRTCLONE:
/* can not happen */
break;
+ case NETWORK_PRIORITY:
+ if (kr6->priority == xn->net.priority)
+ return (xn);
+ break;
}
}
return (NULL);