From: guy Date: Mon, 9 Feb 2004 06:24:42 +0000 (+0000) Subject: We have to define DLT_DOCSIS ourselves, as we include to get X-Git-Tag: libpcap-0.9.1~216 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/333b8942de25a0bd2a34037e91d00b26343876ec We have to define DLT_DOCSIS ourselves, as we include to get the OS's ioctl definitions, rather than including our own "pcap-bpf.h". --- diff --git a/pcap-pf.c b/pcap-pf.c index a8ad1424..3fa1c842 100644 --- a/pcap-pf.c +++ b/pcap-pf.c @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/libpcap/pcap-pf.c,v 1.85 2003-12-18 23:32:33 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-pf.c,v 1.86 2004-02-09 06:24:42 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -274,6 +274,14 @@ pcap_close_pf(pcap_t *p) close(p->fd); } +/* + * We include the OS's , not our "pcap-bpf.h", so we probably + * don't get DLT_DOCSIS defined. + */ +#ifndef DLT_DOCSIS +#define DLT_DOCSIS 143 +#endif + pcap_t * pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *ebuf)