ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Ethereal-dev: Re: [Ethereal-dev] unsupported network type in capture file

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Tue, 25 Mar 2003 00:39:35 -0800
On Tue, Mar 25, 2003 at 12:36:07AM -0800, Guy Harris wrote:
> I've checked in a change to libpcap that *should* handle AIX loopback
> devices - if, again, they have DLT_NULL-style link-layer headers.

Well, no, I haven't, actually - there's a lock in the libpcap CVS tree.

Here's a patch to pcap-bpf.c in the current CVS tree for libpcap that
should work - the patch probably won't work with libpcap 0.7.x.
Index: pcap-bpf.c
===================================================================
RCS file: /tcpdump/master/libpcap/pcap-bpf.c,v
retrieving revision 1.58
diff -c -r1.58 pcap-bpf.c
*** pcap-bpf.c	25 Feb 2003 21:58:48 -0000	1.58
--- pcap-bpf.c	25 Mar 2003 08:39:10 -0000
***************
*** 534,539 ****
--- 534,543 ----
  		v = DLT_IEEE802;
  		break;
  
+ 	case IFT_LOOP:
+ 		v = DLT_NULL;
+ 		break;
+ 
  	default:
  		/*
  		 * We don't know what to map this to yet.