]> The Tcpdump Group git mirrors - libpcap/commitdiff
Oops, I missed one PCAP_ENCAP_ value; revert it to the equivalent DLT_
authorguy <guy>
Wed, 18 Oct 2000 08:32:55 +0000 (08:32 +0000)
committerguy <guy>
Wed, 18 Oct 2000 08:32:55 +0000 (08:32 +0000)
value.

pcap-linux.c

index 76e5700c90be94a5256ee4d0d4078039bb211e83..e95acfae5cb7d12354ed06d9877050270dc95849 100644 (file)
@@ -26,7 +26,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.31 2000-10-12 03:53:59 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.32 2000-10-18 08:32:55 guy Exp $ (LBL)";
 #endif
 
 /*
@@ -541,7 +541,7 @@ live_open_new(pcap_t *handle, char *device, int promisc,
                                break;
                        handle->linktype = map_arphrd_to_dlt(arptype);
                } else 
-                       handle->linktype = PCAP_ENCAP_RAW;
+                       handle->linktype = DLT_RAW;
                        
                if (handle->linktype == -1) {
                        /* Unknown interface type - reopen in cooked mode */