Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Any idea of what do I need to do ?

Add, in your dissector (I presume your protocol is the "dpfd" in "dpfd.next"), a call to register a uint dissector table:

next_proto_table = register_dissector_table("dpfd.next", "DPFD next protocol", proto_dpfd, FT_UINT16, BASE_HEX);

I'm assuming here that the next-layer field is a 16-bit field containing an Ethernet type.

Then, when your dissector is calling the next protocol, use, for example, dissector_try_uint() with next_proto_table as the table in which to look up the next-layer field value.