Ask Your Question

Revision history [back]

click to hide/show revision 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:

  • there is an open issue (17990: wsluarm: document FieldInfo aliases) to fix the WSDG.
  • It would help to have a sample capture for this protocol. The existing examples attached to bugs are short just to address the issue in the bug.