diff options
author | 2017-07-07 15:14:47 +0000 | |
---|---|---|
committer | 2017-07-07 15:14:47 +0000 | |
commit | f050b4cb94a569536e4d44530c6c4e114461ffe4 (patch) | |
tree | dd9e1a0842ed7c5a45b7dba82dff49e012f701c3 /sbin/dhclient/bpf.c | |
parent | Rename cons_options() to pack_options(), and do_packet() to (diff) | |
download | wireguard-openbsd-f050b4cb94a569536e4d44530c6c4e114461ffe4.tar.xz wireguard-openbsd-f050b4cb94a569536e4d44530c6c4e114461ffe4.zip |
assemble_eh_header() needs only to know about hw_addr.
No more struct interface_info knowledge in packet.c
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index d3d6761ffad..c374d1e3039 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.55 2017/07/03 22:06:11 krw Exp $ */ +/* $OpenBSD: bpf.c,v 1.56 2017/07/07 15:14:47 krw Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -272,7 +272,7 @@ send_packet(struct interface_info *ifi, struct in_addr from, struct in_addr to) dest.sin_addr.s_addr = to.s_addr; if (to.s_addr == INADDR_BROADCAST) { - assemble_eh_header(ifi, &eh); + assemble_eh_header(ifi->hw_address, &eh); iov[0].iov_base = &eh; iov[0].iov_len = sizeof(eh); iovcnt++; |