Hi, I am creating dissectors for some proprietary protocols in which I have added preference to specify the port numbers for the dissector. Apart from that I have also registered my dissector to some well known port numbers. My question is that what would happen to the port numbers on which the dissector is registered by default by me (in the lua script) if I go to the dissector preference and change the port numbers from there.
asked 12 Aug '16, 09:34
Every registration in a dissector table has to be explicitly add and removed. The usual pattern is to get the preference (or default value). and register that. When the preference chances you have to remove the previous registration and put the new one in. There are enough examples of this for the UDP and TCP dissectors.
answered 12 Aug '16, 10:14
edited 12 Aug '16, 11:06