diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2015-07-17 20:03:55 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2015-07-17 20:03:55 +0000 |
commit | 5f48db19e9500960c09423e27ae3dafd892d0068 (patch) | |
tree | 85e61dea49ee0f534bd9a80b0e845789e59cca78 | |
parent | 7e7fceb1098140db1da005a98a2c228ba51d4b97 (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.c | 6 |
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) { |