1 | initial version |
On the Wiki page Lua/Examples, see Extract field values.
67 -- get a TvbRange of the FieldInfo (fieldinfo.range in WSDG) 68 local ftvbr = finfo.tvb 69 tree:add(exfield_string, ftvbr:string(ENC_UTF_8)) 70 tree:add(exfield_hex,tostring(ftvbr:bytes()))
The example DNS dissector (dissector.lua) has examples of using :range()
with a tvb
.
Here are changes to pull data out of ieee1905.vendor_specific.info
:
local l_vs_info = vs_info().range subtree:add(al_mac, l_vs_info:range(0,6))
Notes: