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

Post Dissector in C - is it possible?

0

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
131283237
accept rate: 11%

edited 09 Nov '15, 03:03


One Answer:

1

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.

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