From 7b9d8fb5b7202990be20047aae81d8c65032fb9a Mon Sep 17 00:00:00 2001 From: David Ventura Date: Mon, 6 May 2024 16:52:30 +0200 Subject: [PATCH] tolerate cutoff packets --- dissector.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dissector.lua b/dissector.lua index 2019ee3..9373ac5 100644 --- a/dissector.lua +++ b/dissector.lua @@ -411,6 +411,9 @@ function ilnk_proto.dissector(buffer, pinfo, tree) subtree:add(ilnk_proto.fields.pkt_seq, buffer(6, 2)) local b_payload_len = buffer(0xc, 2) local payload_len = buffer(0xc, 2):le_uint() + if payload_len > pkt_len then + payload_len = pkt_len - 12 + end if not is_data_packet then subtree:add_le(ilnk_proto.fields.start, buffer(8, 2))