Hi Pascal, Thanks for your suggestion. I will definitely look into the UAT dialog.
The GUID / plugin mapping changes every time the system recorded is rebooted so I can't hardcode the relationship in the Wireshark code. It has to be dynamically configured. But it is OK to assume that in one pcap file the relationship GUID / plugin is static. Regards, Juanjo Martin On Mon, Sep 18, 2017 at 9:03 PM, Pascal Quantin <[email protected]> wrote: > Hi Juan Jose, > > 2017-09-18 17:12 GMT+02:00 Juan Jose Martin Carrascosa <[email protected]>: > >> Hi all, >> >> Which is the best way to pass configuration to a protocol? Do we have any >> builtin mechanisms? I tried to upload a patch using CSV at some point but >> it didn't succeed. So I wonder if there is any recommended way I can >> implement: table or list in the Preferences, XML file, CSV file... >> >> My goal is to pass ("*GUID*", "*plugin_name*") pairs to the RTPS >> protocol so Wireshark knows dynamically what plugin it should call to >> deserialize data that is written by the DataWriter with id = "GUID". The >> GUID is part of the DATA packet and it is already dissected and known at >> that point. >> > > A UAT dialog could be appropriate for your needs. Several dissectors are > already using it and can be taken as an example (packet-ipsec.c, > packet-http.c, ...). > Or if the GUID / plugin mapping never changes, you could create a > dissector table and have your plugin register to this table (see > register_dissector_table() / register_custom_dissector_table() and the > corresponding dissector_add_XXX() functions). > > Best regards, > Pascal. > > ____________________________________________________________ > _______________ > Sent via: Wireshark-dev mailing list <[email protected]> > Archives: https://www.wireshark.org/lists/wireshark-dev > Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev > mailto:[email protected]?subject= > unsubscribe > -- Juanjo Martin Senior Application Engineer Professional Services Group Office: +34 958 27 88 62 Mobile: +34 656 30 20 56 [email protected] www.rti.com
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <[email protected]> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:[email protected]?subject=unsubscribe
