How to create a Protofield sub array for Lua Wireshark Dissector
snippet in lua

How to create a Protofield sub array for Lua Wireshark Dissector

user9813

begin loop
  subtree= mainsubtree:add(a,buffer())
  subtree:add(f.name, buffer(x,y))
  subtree:add(f.age, buffer(x+name.length,y))
end