Wireshark mailing list archives

Running a function only on first run


From: "Jeremy O'Brien" <obrien654j () gmail com>
Date: Tue, 6 Apr 2010 12:40:58 -0400

Hello,

I'm trying to have Wireshark maintain a list of certain information
from packets as it receives them (using a GHashTable or a GSList, not
sure which yet). The problem I am facing is that the code in my
dissection routine that does this gets run once on each packet as they
are analyzed, but also every time I click on a packet. I understand
this is how Wireshark works, but I was wondering if there was some way
of telling if this is a "first run" analysis or a second-visiting of
the same packet, without maintaining my own variables to keep track of
this for each packet. Does this make sense?

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


Current thread: