Wireshark-dev: Re: [Wireshark-dev] Undissected packet bytes
From: Evan Huus <eapache@xxxxxxxxx>
Date: Wed, 4 Feb 2015 11:25:24 -0500
I think you will need to add a function very similar to
proto_find_field_from_offset that makes use of
proto_tree_traverse_pre_order and tracks which bytes have been "seen"
as the traversal proceeds.

On Wed, Feb 4, 2015 at 11:22 AM, Dario Lombardo
<dario.lombardo.ml@xxxxxxxxx> wrote:
> On Wed, Feb 4, 2015 at 3:52 PM, Evan Huus <eapache@xxxxxxxxx> wrote:
>>
>>
>> As a side note, I would expect that method to be *very* slow, since it
>> traverses the entire tree for every byte of the packet. Traversing the
>> tree once and maintaining a set of covered/uncovered ranges would be
>> much more efficient.
>
>
> I can't figure out how to traverse the tree once.
>
> ___________________________________________________________________________
> Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
> Archives:    http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>              mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe