On Mon, Mar 20, 2023, 2:36 PM Dennis Lambe <den...@sparkcharge.io> wrote:

> On Mon, Mar 20, 2023 at 12:17 PM chuck c <bubbas...@gmail.com> 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 problem isn't in Lua, but in epan/proto.c

The code that handles the values displayed for doubles ignores unit strings.

Dr. Lars Völker started a MR to add this:

https://gitlab.com/wireshark/wireshark/-/merge_requests/10006

John Thacker

>
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Reply via email to