diff options
| author | Roy Marples <roy@marples.name> | 2008-05-15 14:20:01 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-05-15 14:20:01 +0000 |
| commit | f3053f4759310fd6f2fefa59786685c0c9253bd4 (patch) | |
| tree | 0548cbbb9551c21b2a23637a2db311aee7a9ed79 /bpf.c | |
| parent | 3528961fc661b258de615673b26ebe47198f8b31 (diff) | |
| download | dhcpcd-f3053f4759310fd6f2fefa59786685c0c9253bd4.tar.xz | |
No need for this check with our non blocking sockets.
Diffstat (limited to 'bpf.c')
| -rw-r--r-- | bpf.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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, |
