summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/packet.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-02-04 07:40:55 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-02-04 07:40:55 +0000
commita3b68c4e0fa54b469eb8840315fe8011ca170e20 (patch)
treeb85e10425d4f92762d5e55fb15ab2056f97bdac8 /usr.sbin/ospfd/packet.c
parent47b54aab6153617df6f6bef7de33837d490e5b75 (diff)
Use log_warn() insteade of log_warnx() after sendto() and if_set_mcast()
errors as errno was set by the call.
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 7272116fd41..e9fe902ad1d 100644
--- a/usr.sbin/ospfd/packet.c
+++ b/usr.sbin/ospfd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.2 2005/01/28 17:53:33 norby Exp $ */
+/* $OpenBSD: packet.c,v 1.3 2005/02/04 07:40:54 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -67,14 +67,14 @@ send_packet(struct iface *iface, char *pkt, int len, struct sockaddr_in *dst)
/* set outgoing interface for multicast traffic */
if (IN_MULTICAST(ntohl(dst->sin_addr.s_addr)))
if (if_set_mcast(iface) == -1) {
- log_debug("send_packet: error setting multicast "
+ log_warn("send_packet: error setting multicast "
"interface, %s", iface->name);
return (-1);
}
if (sendto(iface->fd, pkt, len, 0,
(struct sockaddr *)dst, sizeof(*dst)) == -1 ) {
- log_warnx("send_packet: error sending packet on interface %s",
+ log_warn("send_packet: error sending packet on interface %s",
iface->name);
return (-1);
}