I'm writing a dissector in Lua and I have two functions besides my dissection functions in the script. Previously, within the dissection function I would be able to get the value of the prefs, and then use them as I see fit. However, since I have two other function, I want those prefs to be inputs to those functions. These functions run only once, outside of the dissection function. However, when I try to input the prefs into the functions Wireshark says that they are of nil value, I suspect the go out of scope. My code is structured as follows:
I’ve tried putting the prefs before and after the dissection function with no luck. Is there anyway to take those prefs and use them in fun1 and fun2? The interesting thing is the returned values, like I and j, can be used in the dissection function no problem. asked 18 Apr ‘17, 10:05 Irfan Hossain |