summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-02-25 22:14:32 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-02-25 22:14:32 +0000
commit80a099934e5a4d10667a41e86a8925e8dce48d5e (patch)
tree7b4d91650b7dedbbb74f8b5349a279af480d3fcb /usr.sbin
parenteb6ea30615c9efc9bbf15206fcaf2b827da2a3f6 (diff)
Announce local networks to IBGP neighbors. OK henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde_update.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c
index 3b1c623fbdf..f5646e71a00 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.7 2004/02/24 14:27:27 claudio Exp $ */
+/* $OpenBSD: rde_update.c,v 1.8 2004/02/25 22:14:31 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -226,7 +226,8 @@ up_generate_updates(struct rde_peer *peer,
*/
return;
- if (peer->conf.ebgp == 0 && old->peer->conf.ebgp == 0)
+ if (peer->conf.ebgp == 0 && old->peer->conf.ebgp == 0 &&
+ (old->aspath->nexthop->flags & NEXTHOP_ANNOUNCE) == 0)
/* Do not redistribute updates to ibgp peers */
return;
@@ -281,7 +282,8 @@ up_generate_updates(struct rde_peer *peer,
*/
return;
- if (peer->conf.ebgp == 0 && new->peer->conf.ebgp == 0)
+ if (peer->conf.ebgp == 0 && new->peer->conf.ebgp == 0 &&
+ (new->aspath->nexthop->flags & NEXTHOP_ANNOUNCE) == 0)
/* Do not redistribute updates to ibgp peers */
return;