-Original Message-
[mailto:[EMAIL PROTECTED] On Behalf Of
ronnie sahlberg
Not tested!
grab the hfinfo structure and modify the fields at runtime :
header_field_info *hfinfo;
hfinfo = proto_registrar_get_nth(hf_index);
hfinfo-bitmask = new bitmask
hfinfo-bitshift = new bit
I used the not-long-since-added proto_tree_add_bits_ret_val() in
packet-umts_fp.c.
There is also proto_tree_add_bits_item() which doesn't extract the
value for you.
Are these functions not suitable for your purpose? It certainly
simplified the part of the code I needed it for.
Martin
On Nov