Wireshark-dev: Re: [Wireshark-dev] Stop dissection in get_pdu_len

From: Tobias Weiss <tweiss@xxxxxxxxxxxxxxx>
Date: Thu, 24 May 2012 12:29:58 -0400
Hi Kuba,

Jakub Zawadzki wrote on 05/24/2012 12:02:50 PM:
> You can't. But you can check header before calling tcp_dissect_pdus().
> But it'd be good to have some tcp_dissect_pdus_heur(), feel free to
> write one :-)

Ok, but it's not always possible to verify the header before
tcp_dissect_pdus(), but what should I do if I can? Currently I'm calling
expert_add_info_* and return without doing anything. But in this case the
user does not even see a warning as long as he does not open the Expert
Info window.

Tobi