Re: [Wireshark-dev] lua dissector: using base.UNIT_STRING on ftypes.DOUBLE ProtoField

2023-03-20 Thread John Thacker
On Mon, Mar 20, 2023, 2:36 PM Dennis Lambe wrote: > On Mon, Mar 20, 2023 at 12:17 PM chuck c wrote: > > Have you tried defining the field using ProtoField.float or > ProtoField.double? > > Yup. Same behavior. Unit shows up correctly for `tshark -G values` but > doesn't appear in the UI. > The p

Re: [Wireshark-dev] lua dissector: using base.UNIT_STRING on ftypes.DOUBLE ProtoField

2023-03-20 Thread Dennis Lambe
On Mon, Mar 20, 2023 at 12:17 PM chuck c wrote: > Have you tried defining the field using ProtoField.float or ProtoField.double? Yup. Same behavior. Unit shows up correctly for `tshark -G values` but doesn't appear in the UI. -- Dennis Lambe (He/Him) Lead Firmware Engineer sparkcharge.io ___

Re: [Wireshark-dev] lua dissector: using base.UNIT_STRING on ftypes.DOUBLE ProtoField

2023-03-20 Thread chuck c
Have you tried defining the field using ProtoField.float or ProtoField.double? https://www.wireshark.org/docs/wsdg_html/#lua_class_ProtoField 11.3.7.17. ProtoField.float(abbr, [name], [valuestring], [desc]) 11.3.7.18. ProtoField.double(abbr, [name], [valuestring], [desc]) On Mon, Mar 20, 2023 a

[Wireshark-dev] lua dissector: using base.UNIT_STRING on ftypes.DOUBLE ProtoField

2023-03-20 Thread Dennis Lambe
I am writing a dissector plugin in Lua, and I'm running into a problem with unit strings. I'm new to Wireshark plugins and new to Lua, so I'm not 100% sure any of what I'm doing is the right way to do it. The protocol I'm dissecting contains fields which are transmitted as integers, but should be