]> The Tcpdump Group git mirrors - libpcap/commitdiff
Check for "ippp" devices, as well as "isdn" and "isdY" devices, when
authorguy <guy>
Fri, 22 Dec 2000 12:30:04 +0000 (12:30 +0000)
committerguy <guy>
Fri, 22 Dec 2000 12:30:04 +0000 (12:30 +0000)
deciding whether to punt to cooked mode.

pcap-linux.c

index 21ae00149bb17800f0963218ee1598c0cd04859c..a214e15f20f697a12b666c92ed39c6863481c168 100644 (file)
@@ -26,7 +26,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.47 2000-12-22 12:24:20 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.48 2000-12-22 12:30:04 guy Exp $ (LBL)";
 #endif
 
 /*
@@ -736,7 +736,9 @@ live_open_new(pcap_t *handle, char *device, int promisc,
                        if (handle->linktype == -1 ||
                            (handle->linktype == DLT_EN10MB &&
                             (strncmp("isdn", device, 4) == 0 ||
-                             strncmp("isdY", device, 4) == 0))) {
+                             strncmp("isdY", device, 4) == 0)) ||
+                           (handle->linktype == DLT_RAW &&
+                            (strncmp("ippp", device, 4) == 0))) {
                                /*
                                 * Unknown interface type (-1), or an ISDN
                                 * device (whose link-layer type we