| 1 | initial version |
Here's an example using EASYPOST.lua from the Wireshark wiki Lua examples.
-- Step 3 - add some field(s) to Step 2 protocol
local pf = { payload = ProtoField.string("easypost.payload", "EASYPOST data"),
address = ProtoField.ipv4("easypost.address", "EASYPOST address") }
easypost_p.fields = pf
...
subtree:add(pf.address, Address.ipv4("10.20.30.40"))
The Address class is covered in the WSDG.