]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
No need for this check with our non blocking sockets.
authorRoy Marples <roy@marples.name>
Thu, 15 May 2008 14:20:01 +0000 (14:20 +0000)
committerRoy Marples <roy@marples.name>
Thu, 15 May 2008 14:20:01 +0000 (14:20 +0000)
bpf.c

diff --git a/bpf.c b/bpf.c
index bce877d7cd24763f22de4811bf136fe9f6e85732..f22a6d110be306778d4457ee00f3dfee41326316 100644 (file)
--- a/bpf.c
+++ b/bpf.c
@@ -159,11 +159,6 @@ get_packet(struct interface *iface, void *data, ssize_t len)
        ssize_t bytes;
        const unsigned char *payload, *d;
 
-       if (iface->buffer_pos > iface->buffer_len) {
-               iface->buffer_len = iface->buffer_pos = 0;
-               return 0;
-       }
-
        for (;;) {
                if (iface->buffer_len == 0) {
                        bytes = read(iface->fd, iface->buffer,