This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How to add plugin version info in “About Wireshark” Using Lua

0

alt text

As mentioned in above figure If i want to display my lua scipt's version in About Wireshark. How can i do that? Is there any LUA API Available for this?

asked 09 Jul '15, 04:11

ankit's gravatar image

ankit
65232328
accept rate: 25%

edited 09 Jul '15, 15:32

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


2 Answers:

0

No not yet. There's an open enhancement request in bugs.wireshark.org, as bug 11315. It won't be available until version 2.0, however.

And it's not guaranteed to work the way it is suggested to in that enhancement request - it might just be implemented as a Lua function call instead of table attribute.

answered 09 Jul '15, 07:14

Hadriel's gravatar image

Hadriel
2.7k2939
accept rate: 18%

OK, thanks for info @hadriel But If my plugin is developed let's say using C language then how to set version of my own added plugin into this?

(09 Jul '15, 08:21) ankit

It's in the moduleinfo.h file for each plugin

(09 Jul '15, 09:28) grahamb ♦

Thanks @grahamb I got it now.

(09 Jul '15, 19:56) ankit

0

see: https://ask.wireshark.org/questions/43375/display-a-version-number-for-lua-dissector

short version: Example Lua code:

local my_info = 
{
    version = "1.0.1",
    author = "Jane Doe",
    description = "this plugin parses rainbows",
    repository = "https://github.com/octocat/Spoon-Knife"
}

set_plugin_info(my_info)

answered 03 May ‘16, 03:46

KamratKalasson's gravatar image

KamratKalasson
213
accept rate: 0%