diff options
author | 2015-04-04 15:04:49 +0000 | |
---|---|---|
committer | 2015-04-04 15:04:49 +0000 | |
commit | 4b0a2bfd98537fb4fac8a8a553ddf8be0810038e (patch) | |
tree | c019635538dd743ca070d9cde1cb4c0a162ed0e3 | |
parent | I contributed substantially to the installer, so add copyright. (diff) | |
download | wireguard-openbsd-4b0a2bfd98537fb4fac8a8a553ddf8be0810038e.tar.xz wireguard-openbsd-4b0a2bfd98537fb4fac8a8a553ddf8be0810038e.zip |
Give more detailed information on a couple of debug messages.
-rw-r--r-- | usr.sbin/ldpd/packet.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c index f7f5b5d4a83..aeafa9e40a8 100644 --- a/usr.sbin/ldpd/packet.c +++ b/usr.sbin/ldpd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.37 2015/02/09 11:54:24 claudio Exp $ */ +/* $OpenBSD: packet.c,v 1.38 2015/04/04 15:04:49 renato Exp $ */ /* * Copyright (c) 2009 Michele Marchetto <michele@openbsd.org> @@ -95,7 +95,8 @@ send_packet(int fd, struct iface *iface, void *pkt, size_t len, if (sendto(fd, pkt, len, 0, (struct sockaddr *)dst, sizeof(*dst)) == -1) { - log_warn("send_packet: error sending packet"); + log_warn("send_packet: error sending packet to %s", + inet_ntoa(dst->sin_addr)); return (-1); } @@ -157,7 +158,9 @@ disc_recv_packet(int fd, short event, void *bula) /* find a matching interface */ if ((fd == leconf->ldp_discovery_socket) && (iface = disc_find_iface(ifindex, src.sin_addr)) == NULL) { - log_debug("disc_recv_packet: cannot find a matching interface"); + log_debug("disc_recv_packet: cannot find a matching subnet " + "on interface index %d for %s", ifindex, + inet_ntoa(src.sin_addr)); return; } |