Wireshark mailing list archives
Re: Running a function only on first run
From: "Maynard, Chris" <Christopher.Maynard () GTECH COM>
Date: Tue, 6 Apr 2010 12:57:33 -0400
I think this thread will help you. http://www.wireshark.org/lists/wireshark-dev/201003/msg00326.html - Chris -----Original Message----- From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Jeremy O'Brien Sent: Tuesday, April 06, 2010 12:41 PM To: Developer support list for Wireshark Subject: [Wireshark-dev] Running a function only on first run 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 CONFIDENTIALITY NOTICE: The contents of this email are confidential and for the exclusive use of the intended recipient. If you receive this email in error, please delete it from your system immediately and notify us either by email, telephone or fax. You should not copy, forward, or otherwise disclose the content of the email. ___________________________________________________________________________ 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:
- Running a function only on first run Jeremy O'Brien (Apr 06)
- Re: Running a function only on first run Graham Bloice (Apr 06)
- Re: Running a function only on first run Jeremy O'Brien (Apr 06)
- Re: Running a function only on first run Maynard, Chris (Apr 06)
- Re: Running a function only on first run Jeremy O'Brien (Apr 07)
- Re: Running a function only on first run Anders Broman (Apr 07)
- Re: Running a function only on first run Anders Broman (Apr 07)
- Re: Running a function only on first run Jeff Morriss (Apr 07)
- Re: Running a function only on first run Jeremy O'Brien (Apr 06)
- Re: Running a function only on first run Graham Bloice (Apr 06)