I wrote a plugin for my protocol whose decoding depends on a file passed to it from the outside. Can I get that file can be properly set by acting directly on the properties of the plugin from the GUI of Wireshark? Thank you in advance. asked 13 May '14, 07:09 Junzo |
2 Answers:
I'm assuming here that you want to set the pathname of the file from the GUI. If so, you want to register a "filename" preference, which is a string preference that also supports a "Browse" button, allowing the user to browse the file system through the GUI. See, for example, answered 14 May '14, 15:24 Guy Harris ♦♦ |
The TPNCP dissector does something similar. Use a text entry for your file. answered 13 May '14, 23:30 Jaap ♦ |
Two questions:
Is the correct call every time the function of reading the string from the preferences by entering the function call in "dissect_myProto" or is there a way to invoke it only when the preference is changed?
How do I delete the preference, and then deallocate the string corresponding to the fie, when I close my wireshark?