Re: [tcpdump-workers] Question - savefile and stats

2008-07-10 Thread Milosz Marian Hulboj
On Thursday 10 July 2008, Guy Harris wrote: > > It sounds as if you're not interested in statistics, you're interested > in the ordinal numbers of packets in the savefile. (Note that, even > in live captures, ps_recv gives you a count of packets that passed the > filter on some platforms an

Re: [tcpdump-workers] Question - savefile and stats

2008-07-09 Thread Guy Harris
On Jul 8, 2008, at 3:33 AM, Milosz Marian Hulboj wrote: I know that it is not possible to use pcap_stats when reading data from a savefile. That's because the statistics aren't recorded in the savefile. I can count the packets returned by the pcap_next_ex, but if I applied a filter, this

[tcpdump-workers] Question - savefile and stats

2008-07-08 Thread Milosz Marian Hulboj
Hello, I know that it is not possible to use pcap_stats when reading data from a savefile. I can count the packets returned by the pcap_next_ex, but if I applied a filter, this won't tell me the absolute position of the packet in the savefile. Is there any way around this problem? Cheers, Mi