Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to use existing dissector in a new dissector inside a new plugin

I have created a new dissector for capturing CAN protocol inside a new plugin called myproto. I have used existing dissector "packet-socketcan.c" as a reference code to make my own customized dissector. I able to compile successfully but while running wireshark binary get aborted and an error like

"Duplicate protocol short_name "CAN"! This might be caused an inappropriate plugin or a development error"

I have changed this short_name into different name, then also the binary get aborted and throw an error like

"packet.c: register_dissector_handle: assertion failed (g_hash_table_lookup(registered_dissectors, name) == NULL)"

Please provide me a right solution to resolve this issue Or suggest me any other way to achieve this scenario.

Appreciate your response and thanks in advance for your valuable time.

how to use existing dissector in a new dissector inside a new plugin

I have created a new dissector for capturing CAN protocol inside a new plugin called myproto. I have used existing dissector "packet-socketcan.c" as a reference code to make my own customized dissector. I able to compile successfully but while running wireshark binary get aborted and an error like

"Duplicate protocol short_name "CAN"! This might be caused an inappropriate plugin or a development error"

I have changed this short_name into different name, then also the binary get aborted and throw an error like

"packet.c: packet.c: register_dissector_handle: assertion failed (g_hash_table_lookup(registered_dissectors, name) == NULL)"NULL)

Please provide me a right solution to resolve this issue Or suggest me any other way to achieve this scenario.

Appreciate your response and thanks in advance for your valuable time.