diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-20 19:16:54 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-20 19:16:54 +0000 |
commit | 37ebb6b9bbb5b8afd9a257272d1c419a724485ba (patch) | |
tree | 07bf29d1690e08e1f60f3374fa7229b99199671e /usr.sbin | |
parent | 0d807c4af7d8a3050333c40357fd45859bfcd8e9 (diff) |
skip over multipath routes
maybe one day we come up with a good reason for bgpd to use multipath
routes, but for now it doesn't make any sense - bgpd inserts the "best"
path fr a prefix, there's no point in inserting more than one. one is
always the "best" one by bgp metrics.
with claudio
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 14d31d39b2f..e15df88d657 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.95 2004/05/08 06:04:57 henning Exp $ */ +/* $OpenBSD: kroute.c,v 1.96 2004/06/20 19:16:53 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -1025,6 +1025,9 @@ fetchtable(void) if (rtm->rtm_flags & RTF_LLINFO) /* arp cache */ continue; + if (rtm->rtm_flags & RTF_MPATH) /* multipath */ + continue; + if ((kr = calloc(1, sizeof(struct kroute_node))) == NULL) { log_warn("fetchtable"); free(buf); |