Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] lua functions

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Luis EG Ontanon" <luis.ontanon@xxxxxxxxx>
Date: Mon, 1 Oct 2007 11:59:10 +0200

You should use the functions the lua interface uses not the lua
wrappers themselves.

In the case of retap_packets you can call it as:

cf_retap_packets(&cfile, FALSE);

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, Илья Куделин <iliya.kudelin@xxxxxxxxx> 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
> Wireshark-dev@xxxxxxxxxxxxx
> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>
>


-- 
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan
  • References:
    • Re: [Wireshark-dev] lua functions
      • From: Илья Куделин
  • Prev by Date: Re: [Wireshark-dev] lua functions
  • Next by Date: Re: [Wireshark-dev] lua functions
  • Previous by thread: Re: [Wireshark-dev] lua functions
  • Next by thread: Re: [Wireshark-dev] lua functions
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation