]> git.puffer.fish Git - mirror/frr.git/commitdiff
2005-02-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Wed, 9 Feb 2005 15:35:50 +0000 (15:35 +0000)
committerajs <ajs>
Wed, 9 Feb 2005 15:35:50 +0000 (15:35 +0000)
* ospf_packet.c: (ospf_write) If sendmsg fails, give more info in the
  error message.

ospfd/ChangeLog
ospfd/ospf_packet.c

index 0d7bd9c479f3033ad049188822fac3b9d9f4ade4..c530a98d57646edb4fdb05a48776b86126829e8f 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * ospf_packet.c: (ospf_write) If sendmsg fails, give more info in the
+         error message.
+         
 2005-02-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
 
        * ospf_interface.h: Reduce structure padding by putting new u_char
index 4700329e1d8ac3bd82acc441dab6f59c4ebcc22e..44b130b76fbb5e9cdf8154e77e51db1af6d7f61f 100644 (file)
@@ -705,8 +705,10 @@ ospf_write (struct thread *thread)
   sockopt_iphdrincl_swab_systoh (&iph);
   
   if (ret < 0)
-    zlog_warn ("*** sendmsg in ospf_write to %s failed with %s",
-      inet_ntoa (iph.ip_dst), safe_strerror (errno));
+    zlog_warn ("*** sendmsg in ospf_write failed to %s, "
+              "id %d, off %d, len %d: %s",
+              inet_ntoa (iph.ip_dst), iph.ip_id, iph.ip_off, iph.ip_len,
+              safe_strerror (errno));
 
   /* Show debug sending packet. */
   if (IS_DEBUG_OSPF_PACKET (type - 1, SEND))