Skip to content

Commit c6951b7

Browse files
authored
Merge pull request FRRouting#19857 from sri-mohan1/srib-25-bgp-a
bgpd: changes for code maintainability
2 parents 39d98ad + aa2fafe commit c6951b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bgpd/bgp_label.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,10 @@ static void bgp_send_fec_register_label_msg(struct bgp_dest *dest, bool reg,
269269
if (reg) {
270270
/* label index takes precedence over auto-assigned label. */
271271
if (label_index != 0) {
272-
flags |= ZEBRA_FEC_REGISTER_LABEL_INDEX;
272+
SET_FLAG(flags, ZEBRA_FEC_REGISTER_LABEL_INDEX);
273273
stream_putl(s, label_index);
274274
} else if (have_label_to_reg) {
275-
flags |= ZEBRA_FEC_REGISTER_LABEL;
275+
SET_FLAG(flags, ZEBRA_FEC_REGISTER_LABEL);
276276
stream_putl(s, label);
277277
}
278278
SET_FLAG(dest->flags, BGP_NODE_REGISTERED_FOR_LABEL);

0 commit comments

Comments
 (0)