-- This file is generated by tools/json2lua.js

local ffxiv_ipc_linkshell_list = Proto("ffxiv_ipc_linkshell_list", "FFXIV-IPC Linkshell List")

local linkshell_list_fields = {
}

ffxiv_ipc_linkshell_list.fields = linkshell_list_fields

function ffxiv_ipc_linkshell_list.dissector(tvbuf, pktinfo, root)
  local tree = root:add(ffxiv_ipc_linkshell_list, tvbuf)
  pktinfo.cols.info:set("Linkshell List")

  local len = tvbuf:len()

  -- dissect linkshell_item
  local linkshell_item_dissector = Dissector.get('ffxiv_ipc_linkshell_item')
  local linkshell_item_pos = 0
  local linkshell_item_len = 56
  local linkshell_item_count = 8

  while linkshell_item_pos + linkshell_item_len <= len do
    local linkshell_item_tvbr = tvbuf:range(linkshell_item_pos, 56)
    linkshell_item_dissector:call(linkshell_item_tvbr:tvb(), pktinfo, root)
    linkshell_item_pos = linkshell_item_pos + linkshell_item_len
    linkshell_item_count = linkshell_item_count - 1
    if linkshell_item_count <= 0 then
      break
    end
  end

  return len
end