From 3d3dedb3cea798098a7f77c5710b75e9ae5d5ba0 Mon Sep 17 00:00:00 2001 From: liangbotong Date: Tue, 26 Sep 2023 10:48:30 +0800 Subject: [PATCH] Fix the icmp parsing error of wireshark_cfg_for_newip.lua Signed-off-by: liangbotong --- newip/tools/wireshark_cfg_for_newip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/newip/tools/wireshark_cfg_for_newip.lua b/newip/tools/wireshark_cfg_for_newip.lua index 7a4eaf7..652dd4c 100644 --- a/newip/tools/wireshark_cfg_for_newip.lua +++ b/newip/tools/wireshark_cfg_for_newip.lua @@ -256,8 +256,8 @@ function nip_dissector(tvb, pinfo, treeitem) offset = offset + 1 nd_icmp_tree:add(_code, tvb(offset, 1)) offset = offset + 1 - nd_icmp_tree:add(_checksum, tvb(offset, 1)) - offset = offset + 1 + nd_icmp_tree:add(_checksum, tvb(offset, 2)) + offset = offset + 2 if type == 1 then local first_addr = tvb(offset, 1):uint() local addr_len = get_nip_addr_len (first_addr)