Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Lua questions: check Wireshark version and handle zlib paylo

From: Tamás Regõs <Tamas.Regos@xxxxxxxxxxxx>
Date: Tue, 20 Apr 2010 08:48:24 +0800
 
Hello,

I've checked case i) and it seems it doesn't exist.
However, I've made a small patch which adds a get_version() LUA function to WS.
If this patch (based on rev 32034) will be committed then you'll able to use it and read out the version string.

Bug 4699 - WSLUA new function to retrieve WS version
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4699

Regards,
Tamas

> Hi,
> 
> I have a couple of questions about the Lua support in Wireshark:
> 
>  i) When I run a Lua script under Wireshark can I check its version?
> 
>     I'm asking this because I want to use one feature that is only
>     available in the development branch (1.3.3 to be) and I would
>     like to emit a warning when the script is executed under any
>     previous version.
> 
> ii) Is there any way to handle Zlib payloads from Lua?
> 
> tia,
> jpo
> -- 
> José Pedro Oliveira