1 | initial version |
I created a dissector under the assumption that a given dissector is applied to every packet picked up by Wireshark.
Incorrect assumption. Link-layer dissectors are applied only if the packet's link-layer protocol type corresponds to the link-layer protocol for that dissector. All other dissectors are applied only if another dissector that sees the packet decides to hand the packet to the dissector in question.
In your case, with a protocol that runs atop UDP, a dissector is called only if the packet is a UDP packet and, for the source and destination port numbers in the UDP header, either:
"udp.port"
dissector table;So, for your case, Jaap's suggest, 2), is the correct answer.