Re: [tcpdump-workers] save PCAP packets into a file

2011-06-25 Thread Guy Harris
On Jun 25, 2011, at 7:26 AM, alokat wrote: > Is there a link-layer header type for ethernet and wlan available? A *single* link-layer header type that can handle Ethernet frames and 802.11 frames in the *same* file, or separate link-layer header types for Ethernet and 802.11?- This is the tcpd

Re: [tcpdump-workers] save PCAP packets into a file

2011-06-25 Thread alokat
On 06/22/2011 08:05 PM, Guy Harris wrote: On Jun 22, 2011, at 10:48 AM, Alokat wrote: I have to save some pcap packets into a file for later analyzing. But I have some problems with creating the pcap file for it. Do I have to call first functions like fopen() to create a dump file?

Re: [tcpdump-workers] save PCAP packets into a file

2011-06-22 Thread Guy Harris
On Jun 22, 2011, at 10:48 AM, Alokat wrote: > I have to save some pcap packets into a file for later analyzing. > > But I have some problems with creating the pcap file for it. > Do I have to call first functions like fopen() to create a dump file? No. > Cause pcap_open_offline crashes if ther

[tcpdump-workers] save PCAP packets into a file

2011-06-22 Thread Alokat
Hi guys, I have to save some pcap packets into a file for later analyzing. But I have some problems with creating the pcap file for it. Do I have to call first functions like fopen() to create a dump file? Cause pcap_open_offline crashes if there is no file available under: const char* fname Reg