tolerate cutoff packets

This commit is contained in:
David Ventura
2024-05-06 16:52:30 +02:00
parent 0ef5581b3b
commit 7b9d8fb5b7
+3
View File
@@ -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))