Hi list,
Is it possible to "hide" a subtree in a protocol list until it's needed?
As I'm parsing through a particular packet, I won't know if I need to
add to (and even display) a subtree until I start walking through a
loop (which may add other entries to the "main" protocol tree itself).
I don't want the subtree entry to display unless there are items to add
to it. I'm thinking I'd need to create the subtree up front, "hide" it
somehow, then if it's determined that I have items to add to the
subtree, "unhide" it and call the function that adds items to that
subtree.
I suppose I could also create the subtree dynamically if it's
determined that I have an item to add for it, but 1) I don't know if
it's even possible to check for the existence of a subtree, and 2) I
believe the subtree would be created at a sub-optimal point in the main
protocol tree (though I believe I can rewrite to avoid that)
Any advice?
Thanks,
Ian Schorr