]> git.puffer.fish Git - mirror/frr.git/commitdiff
[ospfd] Improve Hello NetworkMask mismatch warning to give more info
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 11 Jul 2006 01:50:30 +0000 (01:50 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 11 Jul 2006 01:50:30 +0000 (01:50 +0000)
2006-07-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_packet.c: (ospf_hello) Improve NetworkMask mismatch warning
  message to include interface name and conflicting prefix lengths.

ospfd/ChangeLog
ospfd/ospf_packet.c

index 7c374fb82467ec08c41e852cf2169a34643ff6d7..1bc3232af9ddf51802e6c6e228afe44a92c76ccf 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * ospf_packet.c: (ospf_hello) Improve NetworkMask mismatch warning
+         message to include interface name and conflicting prefix lengths.
+
 2006-07-07 Paul Jakma <paul.jakma@sun.com>
 
        * ospf_nsm.h: Add a NSM_Deleted neighbour state, to act as dummy
index 569f2513a71f1cad5f184c22550dc71dd7886645..788daba3ab6ec0783aa88f80e3f88f9810f9791f 100644 (file)
@@ -785,8 +785,9 @@ ospf_hello (struct ip *iph, struct ospf_header *ospfh,
       && oi->type != OSPF_IFTYPE_VIRTUALLINK)
     if (oi->address->prefixlen != p.prefixlen)
       {
-       zlog_warn ("Packet %s [Hello:RECV]: NetworkMask mismatch.",
-                  inet_ntoa (ospfh->router_id));
+       zlog_warn ("Packet %s [Hello:RECV]: NetworkMask mismatch on %s (configured prefix length is %d, but hello packet indicates %d).",
+                  inet_ntoa(ospfh->router_id), IF_NAME(oi),
+                  (int)oi->address->prefixlen, (int)p.prefixlen);
        return;
       }