From: guy Date: Fri, 22 Dec 2000 12:30:04 +0000 (+0000) Subject: Check for "ippp" devices, as well as "isdn" and "isdY" devices, when X-Git-Tag: libpcap-0.6.1~10 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a4af073aa03dcc1d7851f64a6fbe913b4379035b Check for "ippp" devices, as well as "isdn" and "isdY" devices, when deciding whether to punt to cooked mode. --- diff --git a/pcap-linux.c b/pcap-linux.c index 21ae0014..a214e15f 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -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