Wireshark mailing list archives

Stop dissection in get_pdu_len


From: Tobias Weiss <tweiss () ra rockwell com>
Date: Thu, 24 May 2012 11:35:34 -0400


Hi,

I'm using tcp_dissect_pdus() to reassemble packets in my dissector. One of
my functions will calculate the length of the real message based on a
header with a fixed length (get_pdu_len function pointer). But what is the
best way to stop the dissection in get_pdu_len if I figured out that the
header is invalid? I could just return 0 which would result in a call to
show_reported_bounds_error(), but is that the best way to report the error?

Thanks!

Tobi

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: