diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-01-31 15:23:20 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-01-31 15:23:20 +0000 |
commit | 655b6659f2e1ca33827c052e52c45f65a1b55046 (patch) | |
tree | bb85bf0a492dd3c43f3c6cbd1e343544794ac52c /usr.sbin/bgpd | |
parent | a00b6543784bb12cb6f65fc6380f695a296b3eeb (diff) |
Do not check that the aspath is loopfree for the peer when sending updates.
This is an undocumented optimisation that fails with the introduction of
AS 23456 as placeholder for 4-byte ASN.
OK henning@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde_update.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c index 2af0452a964..28c69c49da3 100644 --- a/usr.sbin/bgpd/rde_update.c +++ b/usr.sbin/bgpd/rde_update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_update.c,v 1.52 2006/11/10 14:47:32 henning Exp $ */ +/* $OpenBSD: rde_update.c,v 1.53 2007/01/31 15:23:19 claudio Exp $ */ /* * Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org> @@ -283,15 +283,6 @@ up_test_update(struct rde_peer *peer, struct prefix *p) break; } - if (peer->conf.ebgp && !aspath_loopfree(p->aspath->aspath, - peer->conf.remote_as)) { - /* - * Do not send routes back to sender which would - * cause an aspath loop. - */ - return (0); - } - if (p->aspath->peer->conf.ebgp == 0 && peer->conf.ebgp == 0) { /* * route reflector redistribution rules: |