Hi Harris,
Thanks for the precise answer. I understood thing dissector_add_uint();
But I am not clear with dissector table concept.
Let me explain, My Ethernet frame will have some Ethernet type value (for example "ABCD")which wireshark doesn’t understand.
So if the frame with Ethernet type value="ABCD" comes how wireshark will know that it has to call my dissector?
What is the way to register that value.
Sorry if I am wrong I am trying to analog it with the call dissector_add("udp.port", global_foo_port, foo_handle);
where we are requesting Wireshark to call foo_handle on receiving packet on UDP port global_foo_port.
In short is it not sufficient to do similar call as in case of UDP?