From 80a099934e5a4d10667a41e86a8925e8dce48d5e Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 25 Feb 2004 22:14:32 +0000 Subject: Announce local networks to IBGP neighbors. OK henning@ --- usr.sbin/bgpd/rde_update.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'usr.sbin/bgpd') 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 @@ -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; -- cgit v1.2.3