summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-25 01:48:08 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-25 01:48:08 +0000
commite0e5d41fc84dfee87e2780a132125e0e582873bf (patch)
tree8811927a3cdad046d4bd5c65500d6b5537b07edd /usr.sbin
parent4bf3141e6bdde6f8c4993ac84df4968b20a85826 (diff)
skip over routing table entires with flag LLINFO (that's arp cache)
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/kroute.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 0209094949b..d05e7926e15 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.9 2003/12/25 01:45:57 henning Exp $ */
+/* $OpenBSD: kroute.c,v 1.10 2003/12/25 01:48:07 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -282,6 +282,9 @@ kroute_fetchtable(void)
if ((sa_in = (struct sockaddr_in *)rti_info[RTAX_DST]) == NULL)
continue;
+ if (rtm->rtm_flags & RTF_LLINFO)
+ continue;
+
if ((kr = calloc(1, sizeof(struct kroute_node))) == NULL)
fatal(NULL, errno);