From ac41b2a2d40356468edc84becc6d5800d119aef6 Mon Sep 17 00:00:00 2001 From: paul Date: Tue, 12 Aug 2003 05:32:27 +0000 Subject: 2003-08-11 kunihiro rmap_type, PEER_RMAP_TYPE_IN); + /* Apply BGP route map to the attribute. */ ret = route_map_apply (ROUTE_MAP_IN (filter), p, RMAP_BGP, &info); + + peer->rmap_type = 0; + if (ret == RMAP_DENYMATCH) { /* Free newly generated AS path and community by route-map. */ @@ -702,12 +707,16 @@ bgp_announce_check (struct bgp_info *ri, struct peer *peer, struct prefix *p, dummy_attr = *attr; info.attr = &dummy_attr; } - + + SET_FLAG (peer->rmap_type, PEER_RMAP_TYPE_OUT); + if (ri->suppress) ret = route_map_apply (UNSUPPRESS_MAP (filter), p, RMAP_BGP, &info); else ret = route_map_apply (ROUTE_MAP_OUT (filter), p, RMAP_BGP, &info); + peer->rmap_type = 0; + if (ret == RMAP_DENYMATCH) { bgp_attr_flush (attr); -- cgit v1.2.1