diff options
author | 2016-08-31 12:57:31 +0000 | |
---|---|---|
committer | 2016-08-31 12:57:31 +0000 | |
commit | 6a2ee11aa21725bb4cdef90dcde7b2006ee496bb (patch) | |
tree | a8f27657c15ad60ce2de28bf9cd07a7936d79c34 /sbin/dhclient/bpf.c | |
parent | remove ym, wss, and sea drivers (diff) | |
download | wireguard-openbsd-6a2ee11aa21725bb4cdef90dcde7b2006ee496bb.tar.xz wireguard-openbsd-6a2ee11aa21725bb4cdef90dcde7b2006ee496bb.zip |
Remove the 'client' global and make it per-ifp.
ok krw@
Diffstat (limited to 'sbin/dhclient/bpf.c')
-rw-r--r-- | sbin/dhclient/bpf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/dhclient/bpf.c b/sbin/dhclient/bpf.c index 74dc0b1c72e..9d1f6051cad 100644 --- a/sbin/dhclient/bpf.c +++ b/sbin/dhclient/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.43 2016/08/23 09:26:02 mpi Exp $ */ +/* $OpenBSD: bpf.c,v 1.44 2016/08/31 12:57:31 mpi Exp $ */ /* BPF socket interface code, originally contributed by Archie Cobbs. */ @@ -259,6 +259,7 @@ if_register_receive(struct interface_info *ifi) ssize_t send_packet(struct interface_info *ifi, struct in_addr from, struct in_addr to) { + struct client_state *client = ifi->client; struct sockaddr_in dest; struct ether_header eh; struct ip ip; @@ -336,6 +337,7 @@ ssize_t receive_packet(struct interface_info *ifi, struct sockaddr_in *from, struct ether_addr *hfrom) { + struct client_state *client = ifi->client; int length = 0, offset = 0; struct bpf_hdr hdr; |