]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix API for sun.
authorRoy Marples <roy@marples.name>
Sun, 17 Jul 2016 14:35:11 +0000 (14:35 +0000)
committerRoy Marples <roy@marples.name>
Sun, 17 Jul 2016 14:35:11 +0000 (14:35 +0000)
if-sun.c

index e701a8e61bbd3d69bcca62cba35162211907cd88..68d1421e28d08ba5f37e434f87ccf4b9edbf9de2 100644 (file)
--- a/if-sun.c
+++ b/if-sun.c
@@ -977,9 +977,9 @@ if_readraw(struct interface *ifp, int fd,
        int                     r;
        size_t                  mlen;
 
-       *flags = 0;
        if ((di = if_findraw(ifp, fd)) == NULL)
                return -1;
+       *flags = RAW_EOF; /* We only ever read one packet. */
        mlen = len;
        r = dlpi_recv(di->dh, NULL, NULL, data, &mlen, -1, NULL);
        return r == DLPI_SUCCESS ? (ssize_t)mlen : -1;