Re: [Wireshark-dev] Lua debug statement not working in Wireshark 3

2019-04-26 Thread David Aldrich
On Fri, Apr 26, 2019 at 2:08 PM Jeff Morriss wrote: > > > On Fri, Apr 26, 2019 at 4:20 AM David Aldrich < > david.aldrich.n...@gmail.com> wrote: > >> Hi >> >> Since upgrading to Wireshark 3 my lua dissector reports error: >> >> "attemp

[Wireshark-dev] Lua debug statement not working in Wireshark 3

2019-04-26 Thread David Aldrich
Hi Since upgrading to Wireshark 3 my lua dissector reports error: "attempt to call global 'debug' (a table value)" for line: debug("PRB #" .. prb_index) Why is this? (Sorry if this has been asked before). Best regards David

Re: [Wireshark-dev] How to improve LUA dissector performance?

2019-04-15 Thread David Aldrich
I haven't seen any answers to my question below. Any thoughts please? Hi > I have written a LUA dissector that analyses large packets that consist of > control information and IQ data (complex numbers). Until recently I > displayed the IQ data as a string and performance was fine. However, I now

[Wireshark-dev] How to improve LUA dissector performance?

2019-04-04 Thread David Aldrich
Hi I have written a LUA dissector that analyses large packets that consist of control information and IQ data (complex numbers). Until recently I displayed the IQ data as a string and performance was fine. However, I now dissect and display each IQ value and the user has complained of very slow p

Re: [Wireshark-dev] Lua dissector: How to set sub-field bit widths using preferences?

2018-09-06 Thread David Aldrich
Hi Chris Thank you very much. It's working very nicely now. Sorry to have questioned your solution! Best regards David ___ Sent via:Wireshark-dev mailing list Archives:https://www.wireshark.org/lists/wireshark-dev

Re: [Wireshark-dev] Lua dissector: How to set sub-field bit widths using preferences?

2018-09-06 Thread David Aldrich
header code. This means that if the user changes the value of the preference, your function does not reflect the change until Wireshark is restarted (and the dissector reloaded). Do you agree? Is there any way around this? Best regards David On Tue, Sep 4, 2018 at 6:28 PM Jeff Morriss wrote: >

[Wireshark-dev] Lua dissector: How to set sub-field bit widths using preferences?

2018-09-03 Thread David Aldrich
Our protocol includes a 16-bit field which is sub-divided into 4 sub-fields. The width of those sub-fields is variable so I want to specify the widths using Wireshark preferences. I understand how to create and read Wireshark preferences but I am unsure of how to apply them in this circumstance.

Re: [Wireshark-dev] Can a Lua dissector access Wireshark preferences?

2018-08-31 Thread David Aldrich
, base.DEC, >> nil, 0x0f) >> >> >> >> - Chris >> >> >> >> [1]: >> https://www.wireshark.org/docs/wsdg_html_chunked/lua_module_Proto.html#lua_class_ProtoField >> >> >> >> >> >> *From:* Wireshark-dev [mailto:wireshark-dev-boun.

[Wireshark-dev] Can a Lua dissector access Wireshark preferences?

2018-08-30 Thread David Aldrich
Hi For my lua dissector, I want to be able to specify the bit width of a data field using a Wireshark Preference. Is that possible? If so, where would I find some help on how to do it? Best regards David ___ Sent via:W