]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Tue, 29 Mar 2005 16:13:49 +0000 (16:13 +0000)
committerajs <ajs>
Tue, 29 Mar 2005 16:13:49 +0000 (16:13 +0000)
* ospf_packet.c: (ospf_write_frags) Enhance error message to
  show MTU.  Also make function static.
  (ospf_write) Enhance error message to show interface name and MTU.
  Also make function static.

ospfd/ChangeLog
ospfd/ospf_packet.c

index a1af72fe60e81ca51e6b21da2e89ec16442ae35f..fbffe6a275cf5bb312a4019d7e993b2e80e3e967 100644 (file)
@@ -1,8 +1,15 @@
 2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
-       * ospf_vty.c (show_ip_ospf_interface_sub): Display interface MTU and
-       bandwidth; this is useful for debugging problems.  Also, the function
-       should be static.
+       * ospf_packet.c: (ospf_write_frags) Enhance error message to
+         show MTU.  Also make function static.
+         (ospf_write) Enhance error message to show interface name and MTU.
+         Also make function static.
+
+2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * ospf_vty.c: (show_ip_ospf_interface_sub) Display interface MTU and
+         bandwidth; this is useful for debugging problems.  Also, the function
+         should be static.
 
 2005-03-27 Hasso Tepper <hasso at quagga.net>
 
index 87913361cf3443342ce7b09451e048aef0791648..4f18c04d3e089ed0990ab45ac6ecbe83244675f1 100644 (file)
@@ -480,7 +480,7 @@ ospf_ls_ack_timer (struct thread *thread)
 }
 
 #ifdef WANT_OSPF_WRITE_FRAGMENT
-void
+static void
 ospf_write_frags (int fd, struct ospf_packet *op, struct ip *iph, 
                   struct msghdr *msg, unsigned int maxdatasize, 
                   unsigned int mtu, int flags, u_char type)
@@ -531,12 +531,13 @@ ospf_write_frags (int fd, struct ospf_packet *op, struct ip *iph,
       
       if (ret < 0)
         zlog_warn ("*** ospf_write_frags: sendmsg failed to %s,"
-                   " id %d, off %d, len %d failed with %s",
-                   inet_ntoa (iph->ip_dst),
-                   iph->ip_id,
-                   iph->ip_off,
-                   iph->ip_len,
-                   safe_strerror (errno));
+                  " id %d, off %d, len %d, mtu %u failed with %s",
+                  inet_ntoa (iph->ip_dst),
+                  iph->ip_id,
+                  iph->ip_off,
+                  iph->ip_len,
+                  mtu,
+                  safe_strerror (errno));
       
       if (IS_DEBUG_OSPF_PACKET (type - 1, SEND))
         {
@@ -563,7 +564,7 @@ ospf_write_frags (int fd, struct ospf_packet *op, struct ip *iph,
 }
 #endif /* WANT_OSPF_WRITE_FRAGMENT */
 
-int
+static int
 ospf_write (struct thread *thread)
 {
   struct ospf *ospf = THREAD_ARG (thread);
@@ -687,9 +688,9 @@ ospf_write (struct thread *thread)
   
   if (ret < 0)
     zlog_warn ("*** sendmsg in ospf_write failed to %s, "
-              "id %d, off %d, len %d: %s",
+              "id %d, off %d, len %d, interface %s, mtu %u: %s",
               inet_ntoa (iph.ip_dst), iph.ip_id, iph.ip_off, iph.ip_len,
-              safe_strerror (errno));
+              oi->ifp->name, oi->ifp->mtu, safe_strerror (errno));
 
   /* Show debug sending packet. */
   if (IS_DEBUG_OSPF_PACKET (type - 1, SEND))