diff options
author | 2013-12-06 23:40:48 +0000 | |
---|---|---|
committer | 2013-12-06 23:40:48 +0000 | |
commit | 393831bbedc65a4a425784816f0f67da4143199d (patch) | |
tree | 9392b1bbcd903a0c8547998794899b80a8432b0c /sbin/dhclient/bpf.c | |
parent | Make clflush() flush the cache line specified by the address we pass it (diff) | |
download | wireguard-openbsd-393831bbedc65a4a425784816f0f67da4143199d.tar.xz wireguard-openbsd-393831bbedc65a4a425784816f0f67da4143199d.zip |
Having stopped pretending we handle anything but ethernet packets,
replace the 'struct hardware' abstraction layer and use 'struct
ether_addr' where hardware addresses are of interest.
ok matthew@, confirmed by reyk@ not to impact DHCP-over-IPSec support.
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index 992e2b3b1e8..7620d048cac 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.29 2013/11/11 21:00:01 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.30 2013/12/06 23:40:48 krw Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -262,7 +262,7 @@ if_register_receive(void) ssize_t send_packet(struct in_addr from, struct sockaddr_in *to, - struct hardware *hto) + struct ether_addr *hto) { #define IOVCNT 2 unsigned char buf[256]; @@ -302,7 +302,7 @@ send_packet(struct in_addr from, struct sockaddr_in *to, } ssize_t -receive_packet(struct sockaddr_in *from, struct hardware *hfrom) +receive_packet(struct sockaddr_in *from, struct ether_addr *hfrom) { int length = 0, offset = 0; struct bpf_hdr hdr; |