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

Are there any examples of dissectors written in Lua that have been translated to C? I'm a beginner and have written a dissector in Lua - now that it does what I want it to, I'd like to write it in C. I know about the development guide and the README, but was looking for a more tangible example to put it in context.

asked 31 May '16, 15:27

osarkar's gravatar image

osarkar
6334
accept rate: 0%


You could try visiting the Sharkfest 2016 Retrospective page and looking at Graham Bloice's presentation (and related materials) titled, "Writing a Dissector: 3 Way to Eat Bytes". When you unzip the .7z archive (using 7-zip), you'll not only have the presentation but a sample dissector written in C and Lua as well as in wsgd.

permanent link

answered 18 Jul '16, 11:00

cmaynard's gravatar image

cmaynard ♦♦
9.4k1038142
accept rate: 20%

The example dissector is very basic, but is meant to show the difference in the "boilerplate" parts needed for a dissector.

(19 Jul '16, 02:29) grahamb ♦
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:

×1,620
×637
×431
×10

question asked: 31 May '16, 15:27

question was seen: 1,037 times

last updated: 19 Jul '16, 02:29

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