diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2021-05-31 15:27:51 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2021-06-08 16:41:33 +0200 |
commit | 162e8460b9943c2942d72d1cebfdb02f51ab6e97 (patch) | |
tree | d530d9b8c96192cc406963acb1c14d2bac0aad19 /ospfd | |
parent | ospfd: fix cleanup of MaxAge LSAs on exit (diff) | |
download | frr-162e8460b9943c2942d72d1cebfdb02f51ab6e97.tar.xz frr-162e8460b9943c2942d72d1cebfdb02f51ab6e97.zip |
ospfd: fix logging of what triggered the SPF run
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_spf.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index 3849d4b7e..43d6ff44b 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -1889,19 +1889,19 @@ static int ospf_spf_calculate_schedule_worker(struct thread *thread) rbuf[0] = '\0'; if (spf_reason_flags) { - if (spf_reason_flags & SPF_FLAG_ROUTER_LSA_INSTALL) + if (spf_reason_flags & (1 << SPF_FLAG_ROUTER_LSA_INSTALL)) strlcat(rbuf, "R, ", sizeof(rbuf)); - if (spf_reason_flags & SPF_FLAG_NETWORK_LSA_INSTALL) + if (spf_reason_flags & (1 << SPF_FLAG_NETWORK_LSA_INSTALL)) strlcat(rbuf, "N, ", sizeof(rbuf)); - if (spf_reason_flags & SPF_FLAG_SUMMARY_LSA_INSTALL) + if (spf_reason_flags & (1 << SPF_FLAG_SUMMARY_LSA_INSTALL)) strlcat(rbuf, "S, ", sizeof(rbuf)); - if (spf_reason_flags & SPF_FLAG_ASBR_SUMMARY_LSA_INSTALL) + if (spf_reason_flags & (1 << SPF_FLAG_ASBR_SUMMARY_LSA_INSTALL)) strlcat(rbuf, "AS, ", sizeof(rbuf)); - if (spf_reason_flags & SPF_FLAG_ABR_STATUS_CHANGE) + if (spf_reason_flags & (1 << SPF_FLAG_ABR_STATUS_CHANGE)) strlcat(rbuf, "ABR, ", sizeof(rbuf)); - if (spf_reason_flags & SPF_FLAG_ASBR_STATUS_CHANGE) + if (spf_reason_flags & (1 << SPF_FLAG_ASBR_STATUS_CHANGE)) strlcat(rbuf, "ASBR, ", sizeof(rbuf)); - if (spf_reason_flags & SPF_FLAG_MAXAGE) + if (spf_reason_flags & (1 << SPF_FLAG_MAXAGE)) strlcat(rbuf, "M, ", sizeof(rbuf)); size_t rbuflen = strlen(rbuf); |