From 8f4c5f09a4c88a249034275d78e85136a3dba040 Mon Sep 17 00:00:00 2001 From: David Ventura Date: Wed, 1 May 2024 11:23:16 +0200 Subject: [PATCH] tidy up dissector --- dissector.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dissector.lua b/dissector.lua index 063f231..f627a43 100644 --- a/dissector.lua +++ b/dissector.lua @@ -65,13 +65,14 @@ function ilnk_proto.dissector(buffer, pinfo, tree) -- Set the protocol description in the packet list pinfo.cols.protocol:set("iLnkP2P") + pinfo.cols.info:set(packetname) if packetname == "PunchPkt" or packetname == "P2pRdy" then local len = buffer(2, 2) subtree:add(ilnk_proto.fields.len, len) local serial_prefix = buffer(4, 4):string() local serial_no = UInt64(buffer(12, 4):uint(), buffer(8, 4):uint()) local serial_suffix = buffer(16, 5):string() - subtree:add(ilnk_proto.fields.serial, serial_prefix..serial_no..serial_suffix) + subtree:add(ilnk_proto.fields.serial, buffer(4, len:uint()-3), serial_prefix..serial_no..serial_suffix) end if packetname == "DrwAck" then subtree:add(ilnk_proto.fields.len, buffer(2, 2))