Fix the icmp parsing error of wireshark_cfg_for_newip.lua

Signed-off-by: liangbotong <liangbotong@huawei.com>
This commit is contained in:
liangbotong
2023-09-26 10:48:30 +08:00
parent b6cbb5509c
commit 3d3dedb3ce
+2 -2
View File
@@ -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)