summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2015-07-17 20:03:55 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2015-07-17 20:03:55 +0000
commit5f48db19e9500960c09423e27ae3dafd892d0068 (patch)
tree85e61dea49ee0f534bd9a80b0e845789e59cca78
parent7e7fceb1098140db1da005a98a2c228ba51d4b97 (diff)
Only filter RTF_LLINFO or RTF_BROADCAST routes out but not RTF_LOCAL ones
since we need those for loopback and point-to-point interfaces. OK mpi@
-rw-r--r--usr.sbin/bgpd/kroute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 10e35826e22..8632261181c 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.203 2015/07/08 08:03:46 mpi Exp $ */
+/* $OpenBSD: kroute.c,v 1.204 2015/07/17 20:03:54 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2821,8 +2821,8 @@ fetchtable(struct ktable *kt, u_int8_t fib_prio)
if ((sa = rti_info[RTAX_DST]) == NULL)
continue;
- /* Skip ARP/ND cache and local routes. */
- if (rtm->rtm_flags & (RTF_LLINFO|RTF_LOCAL|RTF_BROADCAST))
+ /* Skip ARP/ND cache and broadcast routes. */
+ if (rtm->rtm_flags & (RTF_LLINFO|RTF_BROADCAST))
continue;
switch (sa->sa_family) {