Wireshark mailing list archives
Re: UAT and Apply Callback
From: Jeff Morriss <jeff.morriss.ws () gmail com>
Date: Mon, 12 Oct 2009 13:12:18 -0400
Bryant Eastham wrote:
Jeff Morriss wrote:The K12xx dissector uses a UAT preference and applying changes to its UAT preference takes effect immediately. It appears that registeringaUAT preference involves defining a callback function that is calledwhenthe preference is applied/updated.Is that registered callback you're referring to? Or do you mean the proto_reg_handoff functionI checked the K12 dissector and couldn't find anything different from what I am doing. The callback that doesn't seem to be called is passed in prefs_register_protocol. The K12 dissector doesn't use that callback, and so it must be using some other method to apply its changes. I should clarify that the changes are "applied" to the data structures in question (and the callbacks associated with each UAT are being called). The problem is that Wireshark doesn't reprocess the packets as it does when I change other properties.
I just tried it again (with the current SVN) and the packets are reprocessed after applying the K12 preferences. Or, at least, packets that were not previously dissected as anything (because the K12 preferences weren't set up right) are, after closing the preferences window, dissected as what I want. ___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- UAT and Apply Callback Bryant Eastham (Oct 09)
- Re: UAT and Apply Callback Bryant Eastham (Oct 12)
- Re: UAT and Apply Callback Jeff Morriss (Oct 12)
- Re: UAT and Apply Callback Bryant Eastham (Oct 12)
- Re: UAT and Apply Callback Jeff Morriss (Oct 12)
- Re: UAT and Apply Callback (Partial Solution) Bryant Eastham (Oct 12)
- Re: UAT and Apply Callback Bryant Eastham (Oct 12)