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

Can I register a tap by lua?

0

I want to register a tap for statisticing private protocols. I can do it by calling the register_tap c api, by how can I do it by lua script?

asked 13 Mar '15, 02:51

Francis%20Wong's gravatar image

Francis Wong
6112
accept rate: 0%


One Answer:

0

Use the Listener function.

Have you looked at the example in the Developers Guide: 10.3. Example of Listener written in Lua?

There are also some listener examples on the Wireshark Lua examples page.

answered 13 Mar '15, 03:02

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

Thank you for your answer; I want to build a stats tree like the http packet counter(Statistics/HTTP/Packet Counter); I can't call tap_queue_packet manually by lua, so I use the C plugin instead of lua now. Thank U again.^-^

(15 Mar '15, 19:37) Francis Wong