]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospf6d: Stop debug messages happening in rare case 1884/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 14 Mar 2018 01:06:04 +0000 (21:06 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 14 Mar 2018 01:06:04 +0000 (21:06 -0400)
When we have a interface disabled in ospfv3 and
we are receiving messages on it.  We will spam
the log file repeatedly.  Debug guard the message.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
ospf6d/ospf6_message.c

index b75d5b70fa5b8e3b6c0e3f0ebba2ec920d94a7f6..f32cd6e7e3b14d1e98ff3615b0bdeafb42af0371 100644 (file)
@@ -1573,7 +1573,8 @@ int ospf6_receive(struct thread *thread)
        oi = ospf6_interface_lookup_by_ifindex(ifindex);
        if (oi == NULL || oi->area == NULL
            || CHECK_FLAG(oi->flag, OSPF6_INTERFACE_DISABLE)) {
-               zlog_debug("Message received on disabled interface");
+               if (IS_OSPF6_DEBUG_MESSAGE(OSPF6_MESSAGE_TYPE_UNKNOWN, RECV))
+                       zlog_debug("Message received on disabled interface");
                return 0;
        }
        if (CHECK_FLAG(oi->flag, OSPF6_INTERFACE_PASSIVE)) {