From bb782fb50efcd972d4357f9a7164de2c317d2eef Mon Sep 17 00:00:00 2001 From: "Jorge Boncompte [DTI2]" Date: Wed, 20 Jun 2012 16:34:01 +0200 Subject: bgpd: Partially revert f018db8, fixes BZ#730 The change from bgp_node_get() to bgp_node_lookup() broke aggregation. Signed-off-by: Jorge Boncompte [DTI2] Tested-by: Martin Winter Signed-off-by: David Lamparter --- bgpd/bgp_route.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bgpd') diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index cd8f3fea..0337224a 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -4678,9 +4678,7 @@ bgp_aggregate_increment (struct bgp *bgp, struct prefix *p, if (BGP_INFO_HOLDDOWN (ri)) return; - child = bgp_node_lookup (table, p); - if (! child) - return; + child = bgp_node_get (table, p); /* Aggregate address configuration check. */ for (rn = child; rn; rn = rn->parent) @@ -4714,9 +4712,7 @@ bgp_aggregate_decrement (struct bgp *bgp, struct prefix *p, if (p->prefixlen == 0) return; - child = bgp_node_lookup (table, p); - if (! child) - return; + child = bgp_node_get (table, p); /* Aggregate address configuration check. */ for (rn = child; rn; rn = rn->parent) -- cgit v1.2.1