I know that we have to give some criteria in proto_reg_handoff_PROTOABBREV function such as --
So here i want my dissector to be called also when tcp.port == 3008, so can i add just another line here such as --
Am i doing correct ? Any help is sincerely appreciated.
asked 12 Aug '12, 09:40
Yes, you can do that. Many dissectors do, whether it's registering in multiple dissector tables or registering with multiple keys in a single dissector table or both.
If your protocol can run over arbitrary ports, you might want to make a "range" preference, which lets the user specify a list of ports.
answered 12 Aug '12, 19:41
Guy Harris ♦♦