ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] Dissecting multiple protocol headers in a single plugin

From: Bob Doolittle <Robert.Doolittle@xxxxxxx>
Date: Wed, 04 Apr 2007 12:50:11 -0400
Guy Harris wrote:
Bob Doolittle wrote:

	alp_dgram_tree = proto_item_add_subtree(ti, ett_alp_dgram);

ett_alp_dgram - and ett_alp_commonr - aren't -1, right?

Right.  They were both initialized in the proto_register_* routines
by calling proto_register_subtree_array().  I'm following the plugins/docsis
model and auto-generating a plugin.c file, which correctly is handling the
registration and handoff of both dissectors.

-Bob