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

I have some experience of writing a post dissector using LUA. Is it possible to write an equivalent as a C plugin i.e. a dissector that receives control after all other dissectors have been executed?

Thanks and regards...Paul

asked 08 Nov '15, 14:11

PaulOfford's gravatar image

PaulOfford
131273237
accept rate: 11%

edited 09 Nov '15, 03:03


Yes, that's what void register_postdissector(dissector_handle_t); is intended for, see epan/packet.h. Currently there's limited use in the main distribution, other than PRP (but dissection disabled by default) and the MATE plugin, which may be a good example.

permanent link

answered 09 Nov '15, 03:54

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

Well that's embarrassing. I don't know how I missed that. Thanks Jaap.

(09 Nov '15, 04:17) PaulOfford

Tried it and it works a treat.

(09 Nov '15, 23:50) PaulOfford
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:

×24

question asked: 08 Nov '15, 14:11

question was seen: 1,012 times

last updated: 09 Nov '15, 23:50

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