diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 01:48:08 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-25 01:48:08 +0000 |
commit | e0e5d41fc84dfee87e2780a132125e0e582873bf (patch) | |
tree | 8811927a3cdad046d4bd5c65500d6b5537b07edd /usr.sbin | |
parent | 4bf3141e6bdde6f8c4993ac84df4968b20a85826 (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.c | 5 |
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); |