Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

registering two protocol plugin sharing a same port

I have two plugins ABC and XYZ, ABC protocol uses port 3100 and XYZ any port between (1024 and 9000)

dissector_add_uint("tcp.port", "3100", wsi_handle);
dissector_add_uint_range_with_preference("tcp.port", "1024-9000", XYZ_handle);

when the XYZ protocol uses the port 3100, the Wireshark dissects the packet as ABC, but it was supposed to dissect it as ZXY.

how can I handle this case?

Thanks in advance

registering two protocol plugin sharing a same port

I have two plugins ABC and XYZ, ABC protocol uses port 3100 and XYZ any port between (1024 and 9000)

dissector_add_uint("tcp.port", "3100", wsi_handle);
ABC_handle);
dissector_add_uint_range_with_preference("tcp.port", "1024-9000", XYZ_handle);

when the XYZ protocol uses the port 3100, the Wireshark dissects the that packet as ABC, but it was supposed to dissect it as ZXY.

how can I handle this case?

Thanks in advance