diff options
author | Paul Jakma <paul@quagga.net> | 2009-08-11 12:25:42 +0100 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-08-11 12:25:42 +0100 |
commit | 11637435b2d74702296b0522500d03b0395554a2 (patch) | |
tree | c9e5fd2cc9188f7a0702eebc7f6a24c3d4dc495d | |
parent | 9d878775ff5c05afea522b60f014b88822d19e1b (diff) |
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.
-rw-r--r-- | ospfd/ospf_packet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index effef390..8f61ed1a 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) |