summaryrefslogtreecommitdiffstats
path: root/bpf.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-16 08:10:41 +0000
committerRoy Marples <roy@marples.name>2008-07-16 08:10:41 +0000
commitc4d4ee1358061ff620679a51b0d620ce4fa1326b (patch)
tree45b8de515adea70a86428b8a78682dfcc921c93d /bpf.c
parentc969e56974e13ff1fa3204242ce5b2b43e829ad5 (diff)
downloaddhcpcd-c4d4ee1358061ff620679a51b0d620ce4fa1326b.tar.xz
fd -> raw_fd
Diffstat (limited to 'bpf.c')
-rw-r--r--bpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bpf.c b/bpf.c
index e37b5073..f661fe9b 100644
--- a/bpf.c
+++ b/bpf.c
@@ -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) {