diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-05 21:40:45 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-01-05 21:40:45 +0000 |
commit | 89a9537c162b30f23d3866ff69bbe1e9f0295467 (patch) | |
tree | 76d689efe0a7037c946cd799bf05cae85d07c803 /sbin/dhclient/dhcpd.h | |
parent | 41eb19d78bc613052a663dbf535e316f9394bbe0 (diff) |
Simplify and clarify (i.e. shrink) code processing
the bpf captures.
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r-- | sbin/dhclient/dhcpd.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index c2874e89c10..e092f13ab00 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.262 2019/01/03 16:42:30 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.263 2019/01/05 21:40:44 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer <henning@openbsd.org> @@ -123,8 +123,6 @@ struct interface_info { int udpfd; /* udp - unicast writing */ unsigned char *rbuf; size_t rbuf_max; - size_t rbuf_offset; - size_t rbuf_len; int errors; uint16_t index; int link_state; @@ -193,8 +191,8 @@ int get_udp_sock(int); int configure_bpf_sock(int); ssize_t send_packet(struct interface_info *, struct in_addr, struct in_addr, const char *); -ssize_t receive_packet(struct interface_info *, struct sockaddr_in *, - struct ether_addr *); +ssize_t receive_packet(unsigned char *, unsigned char *, + struct sockaddr_in *, struct ether_addr *, struct dhcp_packet *); /* dispatch.c */ void dispatch(struct interface_info *, int); |