Wireshark mailing list archives
Re: Lua converting a UINT64 to hex
From: Tony Trinh <tony19 () gmail com>
Date: Mon, 19 Nov 2012 19:46:36 -0600
On Mon, Nov 19, 2012 at 7:42 PM, Tony Trinh <tony19 () gmail com> wrote:
In your code, the variable "data" is actually a list of instances of the
field in the packet (each represented by a FieldInfo object). To get the
values, you'll need to iterate the list:
for _,fieldinfo in pairs( data ) do
print( fieldinfo.label, fieldinfo.value )
end
Woops, forgot to wrap data. Try this:
for _,fieldinfo in pairs({ data }) do
print( fieldinfo.label, fieldinfo.value )
end
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-request () wireshark org?subject=unsubscribe
Current thread:
- Lua converting a UINT64 to hex Zadik, Maayan (Nov 19)
- Re: Lua converting a UINT64 to hex Tony Trinh (Nov 19)
- Re: Lua converting a UINT64 to hex Tony Trinh (Nov 19)
- Re: Lua converting a UINT64 to hex Tony Trinh (Nov 19)
- Re: Lua converting a UINT64 to hex Tony Trinh (Nov 19)
- Re: Lua converting a UINT64 to hex Stig Bjørlykke (Nov 20)
- Re: Lua converting a UINT64 to hex Tony Trinh (Nov 19)
