Wireshark-dev: Re: [Wireshark-dev] 'Virtual' subtree
From: Alexis La Goutte <alexis.lagoutte@xxxxxxxxx>
Date: Tue, 30 Sep 2014 18:20:38 +0200
You can use a proto_tree_add_item with BASE_NONE and length = 0 (and
add a subtree after...)

Regards,

On Tue, Sep 30, 2014 at 2:01 PM, Simon Zhong <szhong.jnpr@xxxxxxxxx> wrote:
> Hi,
> I'm working on PCEP dissector, I'm wonder if it's possible to create a
> 'virtual' subtree.
> The format of a message is as follows:
> <PCReq Message>::= <Common Header>
>                   [<svec-list>]
>                   <request-list>
> where: <svec-list>::=<SVEC>[<svec-list>]
>       <request-list>::=<request>[<request-list>]
>       <request>::= <RP>
>                    <END-POINTS>
>                    [<LSPA>]
>                    [<BANDWIDTH>]
>                    [<metric-list>]
>                    [<RRO>[<BANDWIDTH>]]
>                    [<IRO>]
>                    [<LOAD-BALANCING>]
> ...
> As you can see there's no real field called <svec-list> or <request-list>,
> it's just set of some other real fields. But I believe it will be more clear
> if we can present these real fields under a 'virtual' subtree, instead of
> presenting them flatly.
> Is there any way to do this? Thanks.
> /Simon
>
>
> ___________________________________________________________________________
> 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