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

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%


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.

permanent link

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×431
×86
×40

question asked: 13 Mar '15, 02:51

question was seen: 1,260 times

last updated: 15 Mar '15, 19:37

p​o​w​e​r​e​d by O​S​Q​A