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

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

accept rate: 0%

edited 19 Apr '15, 22:41

i tried like this:

local my_dissector_table = DissectorTable.get("") 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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 15 Apr '15, 04:27

question was seen: 1,096 times

last updated: 19 Apr '15, 22:41

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