Wireshark-dev: Re: [Wireshark-dev] filtering not working

From: Stig Bjørlykke <stig@xxxxxxxxxxxxx>
Date: Tue, 26 Jan 2010 16:31:06 +0100
On Tue, Jan 26, 2010 at 4:23 PM, Brian Oleksa
<oleksab@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>  proto_tree_add_uint_format(helen_sub_tree, hf_helen_sequence_num, tvb,
> offset, 4, 0,
>         "Sequence #: %d", seq);

You can change this to:

proto_tree_add_uint_format(helen_sub_tree, hf_helen_sequence_num, tvb,
offset, 4, seq,
        "Sequence #: %d", seq);

but using proto_tree_add_item() is the preferred method.  The _format
functions are for special needs.


-- 
Stig Bjørlykke