From a4af073aa03dcc1d7851f64a6fbe913b4379035b Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 22 Dec 2000 12:30:04 +0000 Subject: [PATCH] Check for "ippp" devices, as well as "isdn" and "isdY" devices, when deciding whether to punt to cooked mode. --- pcap-linux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcap-linux.c b/pcap-linux.c index 21ae001..a214e15 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