diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-14 02:06:04 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-14 02:06:04 +0100 |
commit | e4c42d655aa93f94a8eb6ddf20c8125d192fd8ae (patch) | |
tree | 4a19fbf3eac1c3f830ef46b07e830d02bc0f52d2 | |
parent | Merge pull request #1704 from qlyoung/docuser (diff) | |
download | frr-e4c42d655aa93f94a8eb6ddf20c8125d192fd8ae.tar.xz frr-e4c42d655aa93f94a8eb6ddf20c8125d192fd8ae.zip |
ospf6d: Stop debug messages happening in rare case
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>
-rw-r--r-- | ospf6d/ospf6_message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index b75d5b70f..f32cd6e7e 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -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)) { |