Wireshark-dev: Re: [Wireshark-dev] Accessing prior packets in Lua
From: philippe alarcon <philippe.alarcon@xxxxxxx>
Date: Wed, 16 Sep 2009 17:00:54 +0200
Hello, I suggest you to keep your listener. As far as I know, the listener is called when the file is loaded. And the dissector is called for each selected packet. Then I think you need both functionalities : - a listener in order to analyse and memorise all the informations about the different packets, - a dissector in order to analyse the current packet, and verify if the packet has been acknowledged or not, or any related information. Regards Philippe Date: Wed, 16 Sep 2009 08:59:46 -0400 From: beth.tridium@xxxxxxxxx To: wireshark-dev@xxxxxxxxxxxxx Subject: Re: [Wireshark-dev] Accessing prior packets in Lua I suddenly got a glimmer of a clue... I should mention I am a rank Lua beginner, having never heard of it before last Friday. My Lua script began as an exact copy of the "Address Counter" listener code in section 10.3 of the Wireshark User's Guide. Obviously it has changed significantly in content since then, but the basic structure is the same, i.e. it is a listener, not a dissector. I hadn't picked up on that terminology difference before (I was too busy trying to learn the language grammar and the Wireshark API). I bet my script needs to be a dissector, not a listener. BTW since Martin asked, I've attached my current script. You don't need to look at it unless you're interested. I'm off to explore Lua dissectors now. Thanks, b. On Wed, Sep 16, 2009 at 8:37 AM, Beth <beth.tridium@xxxxxxxxx> wrote: Thank you both for your input. My Lua script already creates a data structure for each packet, and when it sees an ack it does the calculation you describe. And I can add the results to the protocol tree for the ack, since that's the one I'm processing when I do the calculations. Un avatar à votre image ? Créez votre mini-moi ! |
- Follow-Ups:
- Re: [Wireshark-dev] Accessing prior packets in Lua
- From: Jeff Morriss
- Re: [Wireshark-dev] Accessing prior packets in Lua
- References:
- [Wireshark-dev] Accessing prior packets in Lua
- From: Beth
- Re: [Wireshark-dev] Accessing prior packets in Lua
- From: Guy Harris
- Re: [Wireshark-dev] Accessing prior packets in Lua
- From: Beth
- Re: [Wireshark-dev] Accessing prior packets in Lua
- From: Beth
- [Wireshark-dev] Accessing prior packets in Lua
- Prev by Date: [Wireshark-dev] buildbot failure in Wireshark (development) on Windows-XP-Win64
- Next by Date: [Wireshark-dev] VoIP Calls and -Graph dialog behaviour
- Previous by thread: Re: [Wireshark-dev] Accessing prior packets in Lua
- Next by thread: Re: [Wireshark-dev] Accessing prior packets in Lua
- Index(es):