]> The Tcpdump Group git mirrors - libpcap/commitdiff
We have to define DLT_DOCSIS ourselves, as we include <net/bpf.h> to get
authorguy <guy>
Mon, 9 Feb 2004 06:24:42 +0000 (06:24 +0000)
committerguy <guy>
Mon, 9 Feb 2004 06:24:42 +0000 (06:24 +0000)
the OS's ioctl definitions, rather than including our own "pcap-bpf.h".

pcap-pf.c

index a8ad1424e876510a818b755d7bef6bf7a1bf217f..3fa1c842faee2eba09e6991dc78533a235dbb084 100644 (file)
--- 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 <net/bpf.h>, 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)