mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 23:53:28 +00:00
ospfd: fix wrong NSSA debug guards
Fix usage of NSSA debug guards in code paths that have nothing to do with NSSA areas. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
This commit is contained in:
parent
98cb53f96a
commit
231af0a5d6
@ -597,7 +597,7 @@ static int ospf_flood_through_interface(struct ospf_interface *oi,
|
|||||||
Designated Router, chances are that all the neighbors have
|
Designated Router, chances are that all the neighbors have
|
||||||
received the LSA already. */
|
received the LSA already. */
|
||||||
if (NBR_IS_DR(inbr) || NBR_IS_BDR(inbr)) {
|
if (NBR_IS_DR(inbr) || NBR_IS_BDR(inbr)) {
|
||||||
if (IS_DEBUG_OSPF_NSSA)
|
if (IS_DEBUG_OSPF(lsa, LSA_FLOODING))
|
||||||
zlog_debug("%s: DR/BDR NOT SEND to int %s (%s)",
|
zlog_debug("%s: DR/BDR NOT SEND to int %s (%s)",
|
||||||
__func__, IF_NAME(oi),
|
__func__, IF_NAME(oi),
|
||||||
ospf_get_name(oi->ospf));
|
ospf_get_name(oi->ospf));
|
||||||
@ -611,7 +611,7 @@ static int ospf_flood_through_interface(struct ospf_interface *oi,
|
|||||||
end up retransmitting the updates. */
|
end up retransmitting the updates. */
|
||||||
|
|
||||||
if (oi->state == ISM_Backup) {
|
if (oi->state == ISM_Backup) {
|
||||||
if (IS_DEBUG_OSPF_NSSA)
|
if (IS_DEBUG_OSPF(lsa, LSA_FLOODING))
|
||||||
zlog_debug(
|
zlog_debug(
|
||||||
"%s: ISM_Backup NOT SEND to int %s (%s)",
|
"%s: ISM_Backup NOT SEND to int %s (%s)",
|
||||||
__func__, IF_NAME(oi),
|
__func__, IF_NAME(oi),
|
||||||
@ -626,8 +626,7 @@ static int ospf_flood_through_interface(struct ospf_interface *oi,
|
|||||||
(which must be > 0) when it is copied into the outgoing Link
|
(which must be > 0) when it is copied into the outgoing Link
|
||||||
State Update packet (until the LS age field reaches the maximum
|
State Update packet (until the LS age field reaches the maximum
|
||||||
value of MaxAge). */
|
value of MaxAge). */
|
||||||
/* XXX HASSO: Is this IS_DEBUG_OSPF_NSSA really correct? */
|
if (IS_DEBUG_OSPF(lsa, LSA_FLOODING))
|
||||||
if (IS_DEBUG_OSPF_NSSA)
|
|
||||||
zlog_debug("%s: DR/BDR sending upd to int %s (%s)", __func__,
|
zlog_debug("%s: DR/BDR sending upd to int %s (%s)", __func__,
|
||||||
IF_NAME(oi), ospf_get_name(oi->ospf));
|
IF_NAME(oi), ospf_get_name(oi->ospf));
|
||||||
|
|
||||||
|
@ -1890,7 +1890,7 @@ static void ospf_ls_upd(struct ospf *ospf, struct ip *iph,
|
|||||||
struct ospf_lsa *ls_ret, *current;
|
struct ospf_lsa *ls_ret, *current;
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
|
|
||||||
if (IS_DEBUG_OSPF_NSSA)
|
if (IS_DEBUG_OSPF(lsa, LSA))
|
||||||
zlog_debug("LSA Type-%d from %pI4, ID: %pI4, ADV: %pI4",
|
zlog_debug("LSA Type-%d from %pI4, ID: %pI4, ADV: %pI4",
|
||||||
lsa->data->type, &ospfh->router_id,
|
lsa->data->type, &ospfh->router_id,
|
||||||
&lsa->data->id, &lsa->data->adv_router);
|
&lsa->data->id, &lsa->data->adv_router);
|
||||||
|
Loading…
Reference in New Issue
Block a user