summaryrefslogtreecommitdiffstats
path: root/lpf.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 /lpf.c
parentc969e56974e13ff1fa3204242ce5b2b43e829ad5 (diff)
downloaddhcpcd-c4d4ee1358061ff620679a51b0d620ce4fa1326b.tar.xz
fd -> raw_fd
Diffstat (limited to 'lpf.c')
-rw-r--r--lpf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lpf.c b/lpf.c
index daa8a4c6..98521871 100644
--- a/lpf.c
+++ b/lpf.c
@@ -112,7 +112,7 @@ open_socket(struct interface *iface, int protocol)
fd = &iface->arp_fd;
else
#endif
- fd = &iface->fd;
+ fd = &iface->raw_fd;
if (*fd != -1)
close(*fd);
*fd = s;
@@ -153,7 +153,7 @@ send_raw_packet(const struct interface *iface, int protocol,
fd = iface->arp_fd;
else
#endif
- fd = iface->fd;
+ fd = iface->raw_fd;
return sendto(fd, data, len, 0, &su.sa, sizeof(su));
}
@@ -169,7 +169,7 @@ get_raw_packet(struct interface *iface, int protocol, void *data, ssize_t len)
fd = iface->arp_fd;
#endif
} else
- fd = iface->fd;
+ fd = iface->raw_fd;
bytes = read(fd, data, len);
if (bytes == -1)
return errno == EAGAIN ? 0 : -1;