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 /lpf.c | |
| parent | c969e56974e13ff1fa3204242ce5b2b43e829ad5 (diff) | |
| download | dhcpcd-c4d4ee1358061ff620679a51b0d620ce4fa1326b.tar.xz | |
fd -> raw_fd
Diffstat (limited to 'lpf.c')
| -rw-r--r-- | lpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |
