From: Paul Jakma Date: Tue, 11 Aug 2009 11:25:42 +0000 (+0100) Subject: ospfd: Make "Packet ... received on wrong link" conditional on debug X-Git-Tag: frr-2.0-rc1~2217 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=11637435b2d74702296b0522500d03b0395554a2;p=mirror%2Ffrr.git ospfd: Make "Packet ... received on wrong link" conditional on debug * ospf_packet.c: make this message conditional on 'debug ospf event', as it be easily triggered with, e.g., multiple subnets sharing same physical network. E.g, see bug #532. --- diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index effef390da..8f61ed1a0e 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -2425,8 +2425,9 @@ ospf_read (struct thread *thread) */ else if (oi->ifp != ifp) { - zlog_warn ("Packet from [%s] received on wrong link %s", - inet_ntoa (iph->ip_src), ifp->name); + if (IS_DEBUG_OSPF_EVENT) + zlog_warn ("Packet from [%s] received on wrong link %s", + inet_ntoa (iph->ip_src), ifp->name); return 0; } else if (oi->state == ISM_Down)