[tcpdump-workers] pcap_next() caplen is off by 14 bytes (L2 len)

2007-03-19 Thread Aaron Turner
So I'm very confused. Basically I have a loop: while ((pktdata = pcap_next(pin, pkthdr_ptr)) != NULL) { packetnum++; dbgx(2, "packet " COUNTER_SPEC " caplen %d", packetnum, pkthdr.caplen); } But when pkthdr.caplen != pkthdr.len for the original packet (as viewed by

[tcpdump-workers] Patch to add Amateur Radio protocol AX.25 to libpcap

2007-03-19 Thread Richard Stearn
Greetings The attached patch adds recognition for the Amateur Radio AX.25 protocol to libpcap. The definition of DLT_AX25 already exists (protocol 3). I would appreciate the inclusion of this patch into libpcap as I am attempting to add the Amateur Radio protocols to tcpdump and wireshark. Lon