Skip to content

Commit 004f990

Browse files
committed
bgpd: fix BGP_ATTR_ORIGINATOR_ID flag in outbound attribute cache
Fix the setting of the BGP_ATTR_ORIGINATOR_ID flag in the outbound attribute cache. Signed-off-by: Enke Chen <[email protected]>
1 parent 27003c5 commit 004f990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bgpd/bgp_route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
24562456
set the originator id */
24572457
if (ibgp_to_ibgp && (!CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_ORIGINATOR_ID)))) {
24582458
IPV4_ADDR_COPY(&(attr->originator_id), &(from->remote_id));
2459-
SET_FLAG(attr->flag, BGP_ATTR_ORIGINATOR_ID);
2459+
SET_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_ORIGINATOR_ID));
24602460
}
24612461

24622462
/* Remove MED if its an EBGP peer - will get overwritten by route-maps

0 commit comments

Comments
 (0)