Guy Harris wrote:
...so one possibility would be to make it a preference setting, as per one of Luis Ontanon's suggestions. You'd have to pick a default port, though - although you could make a port number of 0 mean "don't register it", and make that the default.
No - you could call "dissector_add_handle()" to add it to the list of dissectors that could be dissected based on the UDP port; it takes no port number, so it doesn't cause any particular port to be dissected with the dissector in question, but it does arrange that "Decode As" can be used with a UDP port number.
Stefano
Powered by MHonArc 2.6.10