On Sep 21, 2004, at 10:44 AM, Venkatramani, Bharath wrote:
Again everyone, hello. I feel real bad flooding your inboxes, but I've one
more question regarding the pcap_dump_open function. I'm calling my capture
routine (which uses the pcap_next_ex function) through labview repeatedly
until I press STOP. In my capture routine, where packets are captured,
obviously, I have placed my pcap_dump_open function.
Presumably either
1) your capture routine is *NOT* called for every packet
or
2) it only calls "pcap_dump_open()" the first time it's called, and saves, in a *static* variable (or something else that persists even after the capture routine returns) the return value, and uses that to write packets on all subsequent calls.
Otherwise, you'd be calling "pcap_dump_open()" for each packet, which would be an error unless you wanted a bunch of one-packet capture files (in which case you'd be closing the capture file after writing the one packet to it).
================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use mailto: [EMAIL PROTECTED]
==================================================================
