Re: [tcpdump-workers] pcap and loopback headers

2006-07-27 Thread Guy Harris
Adam M. wrote: This is probably a FAQ++, but I'm having trouble using Pcap for savefiles that were captured from a loopback device. There are 2 problems here: 1) In general, how is one supposed to determine what the layer-2 protocol is? Call pcap_datalink() on the pcap_t. It'll indicate what

[tcpdump-workers] pcap and loopback headers

2006-07-26 Thread Adam M.
This is probably a FAQ++, but I'm having trouble using Pcap for savefiles that were captured from a loopback device. There are 2 problems here: 1) In general, how is one supposed to determine what the layer-2 protocol is? I've traditionally always assumed Ethernet, because I don't know how to dete