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

local ffxiv_ipc_fellowship_info_query = Proto("ffxiv_ipc_fellowship_info_query", "FFXIV-IPC FellowshipInfoQuery")

local fellowship_info_query_fields = {
  id       = ProtoField.uint64("ffxiv_ipc_fellowship_info_query.id", "ID", base.DEC),
  unknown1 = ProtoField.uint32("ffxiv_ipc_fellowship_info_query.unknown1", "Unknown1", base.DEC),
  unknown2 = ProtoField.uint32("ffxiv_ipc_fellowship_info_query.unknown2", "Unknown2", base.DEC),
  limit    = ProtoField.uint32("ffxiv_ipc_fellowship_info_query.limit", "Limit", base.DEC),
  unknown3 = ProtoField.uint32("ffxiv_ipc_fellowship_info_query.unknown3", "Unknown3", base.DEC),
}

ffxiv_ipc_fellowship_info_query.fields = fellowship_info_query_fields

function ffxiv_ipc_fellowship_info_query.dissector(tvbuf, pktinfo, root)
  local tree = root:add(ffxiv_ipc_fellowship_info_query, tvbuf)
  pktinfo.cols.info:set("FellowshipInfoQuery")

  local len = tvbuf:len()

  -- dissect the id field
  local id_tvbr = tvbuf:range(0, 8)
  local id_val  = id_tvbr:le_uint64()
  tree:add_le(fellowship_info_query_fields.id, id_tvbr, id_val)

  -- dissect the unknown1 field
  local unknown1_tvbr = tvbuf:range(8, 4)
  local unknown1_val  = unknown1_tvbr:le_uint()
  tree:add_le(fellowship_info_query_fields.unknown1, unknown1_tvbr, unknown1_val)

  -- dissect the unknown2 field
  local unknown2_tvbr = tvbuf:range(12, 4)
  local unknown2_val  = unknown2_tvbr:le_uint()
  tree:add_le(fellowship_info_query_fields.unknown2, unknown2_tvbr, unknown2_val)

  -- dissect the limit field
  local limit_tvbr = tvbuf:range(16, 4)
  local limit_val  = limit_tvbr:le_uint()
  tree:add_le(fellowship_info_query_fields.limit, limit_tvbr, limit_val)

  -- dissect the unknown3 field
  local unknown3_tvbr = tvbuf:range(20, 4)
  local unknown3_val  = unknown3_tvbr:le_uint()
  tree:add_le(fellowship_info_query_fields.unknown3, unknown3_tvbr, unknown3_val)

  return len
end