From: Roy Marples Date: Wed, 7 Nov 2007 15:43:32 +0000 (+0000) Subject: Clarify recvmsg error X-Git-Tag: v3.2.3~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=867861b7a2af02812d782897003602d46ff0574f;p=thirdparty%2Fdhcpcd.git Clarify recvmsg error --- diff --git a/interface.c b/interface.c index 93634ea0..5c507dfa 100644 --- a/interface.c +++ b/interface.c @@ -641,10 +641,6 @@ static int do_route (const char *ifname, The BSD implementation is much cleaner and a lot less code. send_netlink handles the actual transmission so we can work out if there was an error or not. - - As always throughout this code, credit is due :) - This blatently taken from libnetlink.c from the iproute2 package - which is the only good source of netlink code. */ #define BUFFERLEN 256 static int send_netlink(struct nlmsghdr *hdr) @@ -706,7 +702,7 @@ static int send_netlink(struct nlmsghdr *hdr) if (bytes == -1) { if (errno != EINTR) - logger (LOG_ERR, "netlink: overrun"); + logger (LOG_ERR, "recvmsg: %s", strerror (errno)); continue; }