From 07c2d10f84c0adf7a2fcdaf3d81c05cda1c563c5 Mon Sep 17 00:00:00 2001 From: remi Date: Mon, 15 Jul 2019 18:26:40 +0000 Subject: Improve logging when sending a packet fails. OK claudio@ --- usr.sbin/ospfd/packet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/ospfd/packet.c') 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 @@ -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); } -- cgit v1.2.3