tcpdump mailing list archives

Re: BUG: pcap_fopen_offline doesn't work with pcap_next [patch]


From: Guy Harris <guy () alum mit edu>
Date: Tue, 11 Aug 2009 22:12:40 -0700


On Aug 11, 2009, at 2:26 PM, Dustin Spicuzza wrote:

In git, pcap_fopen_offline (and consequently, any of the other savefile opens) doesn't work with pcap_next because the oneshot_op is not set to
anything.

One can remedy this by using pcap_create_common to create the pcap_t
instead of doing it manually. Of course, the 'source' isn't set
properly...


It's not set "properly" even before your change, so that's not really a huge issue.

Checked in, with a change to set the source to "(savefile)", just in case anybody happens to look at it.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: