On Sep 15, 2003, at 5:15 PM, Kevin A. Noll wrote:


Using other dissectors as examples, I am able to register the preference
and I can change the value in the preferences dialog. However,
when I change the value that I want to use, the decode does not change
appropriately.


So, how do I get the decode to use the preference that I am setting?

You have to arrange that a routine that changes the dissector registration be called when the preference changes. See, for example, "packet-beep.c", which arranges that its "reg_handoff" routine be called when any preferences change; that routine will, if it's already been called once to register the dissector, un-register it with a call to "dissector_delete()" with the old value of the preference before registering, with "dissector_add()", with the new value of the preference.


Reply via email to