summaryrefslogtreecommitdiffstats
path: root/bpf.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-15 14:20:01 +0000
committerRoy Marples <roy@marples.name>2008-05-15 14:20:01 +0000
commitf3053f4759310fd6f2fefa59786685c0c9253bd4 (patch)
tree0548cbbb9551c21b2a23637a2db311aee7a9ed79 /bpf.c
parent3528961fc661b258de615673b26ebe47198f8b31 (diff)
downloaddhcpcd-f3053f4759310fd6f2fefa59786685c0c9253bd4.tar.xz
No need for this check with our non blocking sockets.
Diffstat (limited to 'bpf.c')
-rw-r--r--bpf.c5
1 files changed, 0 insertions, 5 deletions
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,