]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Clarify recvmsg error
authorRoy Marples <roy@marples.name>
Wed, 7 Nov 2007 15:43:32 +0000 (15:43 +0000)
committerRoy Marples <roy@marples.name>
Wed, 7 Nov 2007 15:43:32 +0000 (15:43 +0000)
interface.c

index 93634ea084227a4c5e10d0030ade5a162469f23d..5c507dfa079a87ffa2812ab488cf2f8b5690b73c 100644 (file)
@@ -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;
                }