Hi,
This 'colorize' is mainly intended to mark changeover into another
protocol.
Usually you see this at the top level (from the root), but occasionally
when a protocol is encapsulated (some ITU protocols show this).
As long as your 'structures' are at the top level, these could be
considered valid use if they are truly independant, otherwise it's just
poor style.
Thanks,
Jaap
If you refer to nested structures
On Wed, 15 Dec 2010 14:59:35 +0100, "news.gmane.com"
<AndreasSander1@xxxxxxx> wrote:
> When I look at other dissector's output they use the
> proto_tree_add_protocol_format only for indicating that a new protocol is
> engaged.
>
> These protocol lines in the tree are also displayed in other colors. That
> makes it easy to navigate by eyes. I have a protocol with a lot of
> structures inside. What is a good way to colorize theses structure. It would
> be good to indicate where a new item in sequence begins. I think the abuse
> of the ..._add_protocol would a bad style or probably a bug.
>
> What do you advice?