You should use the functions the lua interface uses not the lua
In the case of retap_packets you can call it as:
But you should do that from a gui action *_stat.c in the gtk/ dir as
it would only work in wireshark (it won't work for tshark).
On 10/1/07, Илья Куделин <[email protected]> wrote:
> > Sorry but I been very busy lately.
> > Most lua functions are just wrappers for functions of wireshark's
> > "API". Don't use the Lua wrappers, use the very same C functions they
> > use instead, you can use the code in them instead!
> > you can take the code in wslua_retap_packets() and
> > wslua_register_menu() and instead of fetching the parameters from the
> > lua_State you should get them yourself.
> > BTW
> > I do not see any good use in a dissector for retap_packets(), which
> > kind of plugin are you working on?
> > Luis
> where i can see how to initialized the lua_State structure?
> Wireshark-dev mailing list
> [email protected]
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan