Ethereal-dev: [Ethereal-dev] binary representation of IE

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

From: Pate Mark-marpate1 <Mark.Pate@xxxxxxxxxxxx>
Date: Thu, 15 May 2003 14:50:15 +0100
Hi all,

I am currently trying to write a new dissector for an internal protocol that
we use at work.

What I would like to do is display the binary representation of an
Information Element based on a dynamic bitmask. This seems to be done
automatically with proto_tree_add_item as per the bitmask defined in the
protocol registration. However, unfortunately, I can not do it this was as
the bitmask is not known at compile time.

There is probably a simple method to do this, but I have not found
references to it in the documentation.

Many thanks for any advice.

Mark
--
Mark Pate,
GPRS Lead Engineer