Skip to content

Commit 543f2c7

Browse files
authored
Merge pull request FRRouting#19918 from enkechen-panw/bgp-originator
bgpd: fix BGP_ATTR_ORIGINATOR_ID flag in outbound attribute cache
2 parents db61d3c + 004f990 commit 543f2c7

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)