]> git.puffer.fish Git - mirror/frr.git/commitdiff
ospfd: Make "Packet ... received on wrong link" conditional on debug
authorPaul Jakma <paul@quagga.net>
Tue, 11 Aug 2009 11:25:42 +0000 (12:25 +0100)
committerPaul Jakma <paul@quagga.net>
Tue, 11 Aug 2009 11:25:42 +0000 (12:25 +0100)
* 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.

ospfd/ospf_packet.c

index effef390da82a6d3a87ad05247975db6f3a6dd80..8f61ed1a0e8e6055d69bdc1fa5f99e630d723f15 100644 (file)
@@ -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)