diff options
| author | Roy Marples <roy@marples.name> | 2008-07-16 08:10:41 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2008-07-16 08:10:41 +0000 |
| commit | c4d4ee1358061ff620679a51b0d620ce4fa1326b (patch) | |
| tree | 45b8de515adea70a86428b8a78682dfcc921c93d /bpf.c | |
| parent | c969e56974e13ff1fa3204242ce5b2b43e829ad5 (diff) | |
| download | dhcpcd-c4d4ee1358061ff620679a51b0d620ce4fa1326b.tar.xz | |
fd -> raw_fd
Diffstat (limited to 'bpf.c')
| -rw-r--r-- | bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -116,7 +116,7 @@ open_socket(struct interface *iface, int protocol) } else { pf.bf_insns = UNCONST(dhcp_bpf_filter); pf.bf_len = dhcp_bpf_filter_len; - fdp = &iface->fd; + fdp = &iface->raw_fd; } if (ioctl(fd, BIOCSETF, &pf) == -1) goto eexit; @@ -156,7 +156,7 @@ send_raw_packet(const struct interface *iface, int protocol, fd = iface->arp_fd; else #endif - fd = iface->fd; + fd = iface->raw_fd; return writev(fd, iov, 2); } @@ -176,7 +176,7 @@ get_raw_packet(struct interface *iface, int protocol, fd = iface->arp_fd; #endif } else - fd = iface->fd; + fd = iface->raw_fd; for (;;) { if (iface->buffer_len == 0) { |
