From 89a9537c162b30f23d3866ff69bbe1e9f0295467 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 5 Jan 2019 21:40:45 +0000 Subject: Simplify and clarify (i.e. shrink) code processing the bpf captures. --- sbin/dhclient/dhcpd.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'sbin/dhclient/dhcpd.h') 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 @@ -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); -- cgit v1.2.3