Ethereal-dev: [Ethereal-dev] A dynamic number of subtrees

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Stefano Pettini <spettini@xxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 02 Jan 2005 20:08:21 +0100
Hello,

How can I add a dynamic number of subtrees to my protocol tree? It's not possible to register them in advance using proto_register_subtree_array, since their number is different in every packet and unknown at protocol registration.

Should I allocate a fixed number of subtrees, and hope they're enough?

Thanks.

Stefano