Re: [Wireshark-dev] Dissector lifecycle and per-file data

2021-03-29 Thread Vincent Mallet
On Mon, Mar 29, 2021 at 9:32 AM Pascal Quantin wrote: > Did you look at the register_cleanup_routine() found in epan/packet.h? It > seems to be what you are looking for. To quote the comments: > > register_init_routine() and register_cleanup_routine() are exactly what I was after. Beautiful,

Re: [Wireshark-dev] Dissector lifecycle and per-file data

2021-03-29 Thread Pascal Quantin
Hi Vincent, Le lun. 29 mars 2021 à 18:24, Vincent Mallet a écrit : > I am hoping this is the right place to ask this question but if not please > redirect me. > That's the right place :) > I am working on a custom C dissector and need to keep some data around for > the lifetime of the