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

for example, i used :

dissector_add_string("rtp_ dyn_ payload_ type","PATTREN", xxx_handle);

while writing a normal dissector in c. Now i want to write the dissector in lua .please help me with this.

asked 15 Apr '15, 04:27

lakshmi's gravatar image

lakshmi
16669
accept rate: 0%

edited 19 Apr '15, 22:41

i tried like this:

local my_dissector_table = DissectorTable.get("rtp.pt") local xxx = dissectortable:get_dissector("PATTREN") my_dissector_table:add(xxx, p_myproto)

It is showing error as:

Lua: Error during loading: C:\Program Files\Wireshark1\myproto.lua:30: bad argument #1 to 'get_dissector' (number expected, got string)

(19 Apr '15, 22:28) lakshmi
Be the first one to answer this question!
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
×193

question asked: 15 Apr '15, 04:27

question was seen: 1,050 times

last updated: 19 Apr '15, 22:41

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