summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/packet.c
diff options
context:
space:
mode:
authorremi <remi@cvs.openbsd.org>2019-07-15 18:26:40 +0000
committerremi <remi@cvs.openbsd.org>2019-07-15 18:26:40 +0000
commit07c2d10f84c0adf7a2fcdaf3d81c05cda1c563c5 (patch)
treee89ca1ef767b6c84b1bb53927a8494b8fccc22f6 /usr.sbin/ospfd/packet.c
parent8cadae2d543cf2a7b3c348dc21f7397603f0f06b (diff)
Improve logging when sending a packet fails.
OK claudio@
Diffstat (limited to 'usr.sbin/ospfd/packet.c')
-rw-r--r--usr.sbin/ospfd/packet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/packet.c b/usr.sbin/ospfd/packet.c
index cf4352bb62d..4a8c64210f0 100644
--- a/usr.sbin/ospfd/packet.c
+++ b/usr.sbin/ospfd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.31 2014/10/25 03:23:49 lteo Exp $ */
+/* $OpenBSD: packet.c,v 1.32 2019/07/15 18:26:39 remi Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -96,8 +96,8 @@ send_packet(struct iface *iface, struct ibuf *buf, struct sockaddr_in *dst)
return (-1);
if (sendmsg(iface->fd, &msg, 0) == -1) {
- log_warn("send_packet: error sending packet on interface %s",
- iface->name);
+ log_warn("%s: error sending packet to %s on interface %s",
+ __func__, inet_ntoa(ip_hdr.ip_dst), iface->name);
return (-1);
}