diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-04-05 13:36:56 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-05 13:36:56 +0300 |
| commit | 029940cd77fc052d706c4bdc6abd17c685f7e34e (patch) | |
| tree | 66abc5f4c1be36e6d00420e5175482180bd84f26 | |
| parent | 33d985705ae14eb340e34cc2a87d9d3a43708d60 (diff) | |
| parent | 9fb31c5e247747a9944b656bb286f98edf687c22 (diff) | |
Merge pull request #15685 from anlancs/fix/ldpd-cmd-dup-label-check
zebra: cosmetic change for one flag
| -rw-r--r-- | zebra/zebra_mpls.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index 90695261eb..cc2cf9b9ff 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -2291,7 +2291,7 @@ int zebra_mpls_fec_register(struct zebra_vrf *zvrf, struct prefix *p, new_client = true; } else { /* Check if the FEC has been statically defined in the config */ - is_configured_fec = fec->flags & FEC_FLAG_CONFIGURED; + is_configured_fec = CHECK_FLAG(fec->flags, FEC_FLAG_CONFIGURED); /* Client may register same FEC with different label index. */ new_client = (listnode_lookup(fec->client_list, client) == NULL); @@ -2382,8 +2382,8 @@ int zebra_mpls_fec_unregister(struct zebra_vrf *zvrf, struct prefix *p, /* If not a configured entry, delete the FEC if no other clients. Before * deleting, see if any LSP needs to be uninstalled. */ - if (!(fec->flags & FEC_FLAG_CONFIGURED) - && list_isempty(fec->client_list)) { + if (!CHECK_FLAG(fec->flags, FEC_FLAG_CONFIGURED) && + list_isempty(fec->client_list)) { mpls_label_t old_label = fec->label; fec->label = MPLS_INVALID_LABEL; /* reset */ fec_change_update_lsp(zvrf, fec, old_label); |
