Wireshark-dev: Re: [Wireshark-dev] how do I know that a new capture has been started

From: Yang Ning <yang.ning@xxxxxxxxxxx>
Date: Thu, 21 May 2009 13:39:38 -0400
checking if 

pinfo->fd->num == 1

That is, if the frame number of the packet is 1. Might be sufficient for your purposes. 


-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of wsgd
Sent: Thursday, May 21, 2009 8:24 AM
To: Developer support list for Wireshark
Subject: [Wireshark-dev] how do I know that a new capture has been started

Hello all,

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

reset callback of register_tap_listener ?
other possibilities ?

Can I use (or it is normal to use) the tap system on my own protocol ?
other possibilities ?



Thanks,
Olivier

-- 
Wireshark Generic Dissector http://wsgd.free.fr

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe