[Wireshark-dev] Running a function only on first run

2010-04-06 Thread Jeremy O'Brien
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

Re: [Wireshark-dev] Running a function only on first run

2010-04-06 Thread Graham Bloice
On 06/04/2010 17:40, Jeremy O'Brien wrote: > 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 g

Re: [Wireshark-dev] Running a function only on first run

2010-04-06 Thread Maynard, Chris
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 i

Re: [Wireshark-dev] Running a function only on first run

2010-04-06 Thread Jeremy O'Brien
On Tue, Apr 6, 2010 at 12:58, Graham Bloice wrote: > Try PINFO_FD_VISITED(pinfo) on the pinfo you have.  Visited gets set after > the first pass. I cannot find this macro. Where is it defined? It would be very nice to have since pinfo->fd->flags.visited is kind of cumbersome.

Re: [Wireshark-dev] Running a function only on first run

2010-04-06 Thread Maynard, Chris
epan/frame_data.h. - Chris -Original Message- From: wireshark-dev-boun...@wireshark.org [mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Jeremy O'Brien Sent: Tuesday, April 06, 2010 1:43 PM To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Running a fun

Re: [Wireshark-dev] Running a function only on first run

2010-04-07 Thread Jeremy O'Brien
.@wireshark.org > [mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Jeremy O'Brien > Sent: Tuesday, April 06, 2010 1:43 PM > To: Developer support list for Wireshark > Subject: Re: [Wireshark-dev] Running a function only on first run > > On Tue, Apr 6, 2010 at 12:58, Graham Blo

Re: [Wireshark-dev] Running a function only on first run

2010-04-07 Thread Anders Broman
Wireshark Subject: Re: [Wireshark-dev] Running a function only on first run This is the file I found that contains the definition I need, but I still do not see the PINFO_FD_VISITED macro you specified... On Tue, Apr 6, 2010 at 16:36, Maynard, Chris wrote: > epan/frame_data.h. > - Chris &

Re: [Wireshark-dev] Running a function only on first run

2010-04-07 Thread Anders Broman
nders.bro...@ericsson.com] Sent: Wednesday, April 07, 2010 3:24 PM To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Running a function only on first run Hi, I don't think there is one... /Anders From: wireshark-dev-boun...@wireshark.

Re: [Wireshark-dev] Running a function only on first run

2010-04-07 Thread Jeff Morriss
>> epan/frame_data.h. >> - Chris >> >> -Original Message- >> From: wireshark-dev-boun...@wireshark.org >> [mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Jeremy O'Brien >> Sent: Tuesday, April 06, 2010 1:43 PM >> To: Developer support l