From: Roy Marples Date: Thu, 15 May 2008 14:20:01 +0000 (+0000) Subject: No need for this check with our non blocking sockets. X-Git-Tag: v4.0.2~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3053f4759310fd6f2fefa59786685c0c9253bd4;p=thirdparty%2Fdhcpcd.git No need for this check with our non blocking sockets. --- diff --git a/bpf.c b/bpf.c index bce877d7..f22a6d11 100644 --- 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,