--- Net2/net/bpfdesc.h 2018/04/24 18:13:30 1.1.1.2 +++ Net2/net/bpfdesc.h 2018/04/24 18:21:54 1.1.1.3 @@ -35,11 +35,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)bpfdesc.h 7.1 (Berkeley) 5/7/91 - * - * @(#) $Header: /var/lib/cvsd/net2/Net2/net/bpfdesc.h,v 1.1.1.2 2018/04/24 18:13:30 root Exp $ (LBL) + * from: @(#)bpfdesc.h 7.1 (Berkeley) 5/7/91 + * bpfdesc.h,v 1.5 1993/05/18 18:19:52 cgd Exp */ +#ifndef _NET_BPFDESC_H_ +#define _NET_BPFDESC_H_ + /* * Descriptor associated with each open bpf file. */ @@ -71,14 +73,10 @@ struct bpf_d { u_char bd_promisc; /* true if listening promiscuously */ u_char bd_state; /* idle, waiting, or timed out */ u_char bd_immediate; /* true to return on packet arrival */ -#if BSD <= 199103 +#if (BSD <= 199103) && !defined(__386BSD__) u_char bd_selcoll; /* true if selects collide */ int bd_timedout; -#if defined(__386BSD__) - pid_t bd_selpid; /* process that last selected us */ -#else struct proc * bd_selproc; /* process that last selected us */ -#endif #else /* BSD > 199103 */ u_char bd_pad; /* explicit alignment */ struct selinfo bd_sel; /* bsd select info */ @@ -96,3 +94,5 @@ struct bpf_if { u_int bif_hdrlen; /* length of header (with padding) */ struct ifnet *bif_ifp; /* correspoding interface */ }; + +#endif /* !_NET_BPFDESC_H_ */