summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorajs <ajs>2005-02-09 15:35:50 +0000
committerajs <ajs>2005-02-09 15:35:50 +0000
commit083ee9d9cdbf72a452b9af96e62d0625ea712cd9 (patch)
tree25843a21e1d0ed9dd9125a8ed117e895b51bd432
parent8cfde37647b40640667ffb38c32b575da1476586 (diff)
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.
-rw-r--r--ospfd/ChangeLog5
-rw-r--r--ospfd/ospf_packet.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog
index 0d7bd9c4..c530a98d 100644
--- a/ospfd/ChangeLog
+++ b/ospfd/ChangeLog
@@ -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
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c
index 4700329e..44b130b7 100644
--- a/ospfd/ospf_packet.c
+++ b/ospfd/ospf_packet.c
@@ -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))