On May 21, 2009, at 8:23 AM, wsgd wrote:

> Into a plugin dissector,
> how do I know that :
> - a new capture has been started
> - a new file is loaded

You call register_init_routine() in your protocol registration  
routine, passing it a pointer to a function (no arguments, no return  
value) that's called before Wireshark makes a pass through a capture  
file and dissects all its packets.  That function would clean up any  
state information from a previous capture file or a previous  
dissection of the current capture file.
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe

Reply via email to