This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

What is the meaning of HFILL in proto_register?

0

While creating any plugin we have to register into wireshark. There is one method called proto_register_XXX() in this method predefined structure is used.in that one argument is HFILL . What is the meaning of that???

asked 23 Dec '14, 02:22

ankit's gravatar image

ankit
65232328
accept rate: 25%


One Answer:

0

HFILL is a macro which expands to some additional fields that are necessary for bookkeeping. You can find the definition in epan/proto.h:

/**
 * HFILL initializes all the "set by proto routines" fields in a
 * _header_field_info. If new fields are added or removed, it should
 * be changed as necessary.
 */
#define HFILL -1, 0, HF_REF_TYPE_NONE, -1, NULL

answered 23 Dec '14, 03:41

Lekensteyn's gravatar image

Lekensteyn
2.2k3724
accept rate: 30%