This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

How we can add Browse button in preferences for a Lua dissector?

0

From Edit -> Preferences menu under protocols tag if we have made our own protocol in that we want to add browse button to browse the particular file as like in SSL how we can achieve that using LUA Script??

asked 03 Mar '15, 20:55

ankit's gravatar image

ankit
65232328
accept rate: 25%

edited 04 Mar '15, 01:59

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196


One Answer:

0

Unfortunately, the prefs_register_filename_preference() function isn't exposed in the Lua API, so you can't have such a preference in a Lua dissector, only in a dissector written in C.

@Hadriel, this might be something useful to add to the Lua API in a future release.

answered 04 Mar '15, 01:59

Guy%20Harris's gravatar image

Guy Harris ♦♦
17.4k335196
accept rate: 19%