]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile
authorRoy Marples <roy@marples.name>
Fri, 19 Jun 2015 14:09:37 +0000 (14:09 +0000)
committerRoy Marples <roy@marples.name>
Fri, 19 Jun 2015 14:09:37 +0000 (14:09 +0000)
if-linux.c

index 6c28f8c7e5240d952dcd2bb4840006069dc9d62a..29ffdd785027b1211a2b60d66d8cfe5a31480931 100644 (file)
@@ -1215,7 +1215,7 @@ if_sendrawpacket(const struct interface *ifp, uint16_t protocol,
                    &ipv4_bcast_addr, sizeof(ipv4_bcast_addr));
        else
                memset(&su.sll.sll_addr, 0xff, ifp->hwlen);
-       fd = ipv4_protocol(ifp, protocol);
+       fd = ipv4_protocol_fd(ifp, protocol);
 
        return sendto(fd, data, len, 0, &su.sa, sizeof(su.sll));
 }
@@ -1248,7 +1248,7 @@ if_readrawpacket(struct interface *ifp, uint16_t protocol,
 #endif
 
        state = D_STATE(ifp);
-       fd = ipv4_protocol(ifp, protocol);
+       fd = ipv4_protocol_fd(ifp, protocol);
        bytes = recvmsg(fd, &msg, 0);
        if (bytes == -1)
                return -1;