ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Proper private_data usage

From: Christopher Maynard <Christopher.Maynard@xxxxxxxxx>
Date: Tue, 15 Oct 2013 17:11:36 +0000 (UTC)
Jeff Morriss <jeff.morriss.ws@...> writes:

> But, yes, I think that when using private_data the restoration is 
> necessary: otherwise if you have multiple PDUs in one frame then an 
> exception in one of the early PDUs will cause the private_data to be 
> wrong when the next PDU is dissected.
> 
> This is one of the reasons not to use private_data at all.

Would it be safer and easier to maintain if this was instead done within
call_dissector() and friends?