X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ldpd%2Fadjacency.c;h=42c3ef05351aec8855156e4b319bc0d2e48d9722;hb=32701c48d85074a8bb08196be129b429952e7d7d;hp=97e4c2ef019d0930f929431c0973dc88ddec6cdb;hpb=941778e854975305928d06df5ea7dc908aeda258;p=mirror_frr.git diff --git a/ldpd/adjacency.c b/ldpd/adjacency.c index 97e4c2ef0..42c3ef053 100644 --- a/ldpd/adjacency.c +++ b/ldpd/adjacency.c @@ -170,7 +170,7 @@ static void adj_itimer(struct thread *thread) log_debug("%s: lsr-id %pI4", __func__, &adj->lsr_id); if (adj->source.type == HELLO_TARGETED) { - if (!(adj->source.target->flags & F_TNBR_CONFIGURED) && + if (!CHECK_FLAG(adj->source.target->flags, F_TNBR_CONFIGURED) && adj->source.target->pw_count == 0 && adj->source.target->rlfa_count == 0) { /* remove dynamic targeted neighbor */ @@ -245,7 +245,7 @@ tnbr_find(struct ldpd_conf *xconf, int af, union ldpd_addr *addr) struct tnbr * tnbr_check(struct ldpd_conf *xconf, struct tnbr *tnbr) { - if (!(tnbr->flags & (F_TNBR_CONFIGURED|F_TNBR_DYNAMIC)) && + if (!CHECK_FLAG(tnbr->flags, (F_TNBR_CONFIGURED|F_TNBR_DYNAMIC)) && tnbr->pw_count == 0 && tnbr->rlfa_count == 0) { tnbr_del(xconf, tnbr); return (NULL);