overte-AleziaKurdis/tools/dissectors/5-hf-domain.lua
Dale Glass c06a60eaea Fix wireshark dissector, update with new packet types.
Probably still incomplete, but getting closer.
2024-07-18 16:39:37 +02:00

25 lines
659 B
Lua

-- create the domain protocol
print("Loading hf-domain")
bit32 = require("bit32")
p_hf_domain = Proto("hf-domain", "HF Domain Protocol")
-- domain packet fields
local f_domain_id = ProtoField.guid("hf_domain.domain_id", "Domain ID")
local f_domain_local_id = ProtoField.uint16("hf_domain.domain_local_id", "Domain Local ID")
p_hf_domain.fields = {
f_domain_id, f_domain_local_id
}
function p_hf_domain.dissector(buf, pinfo, tree)
pinfo.cols.protocol = p_hf_domain.name
domain_subtree = tree:add(p_hf_domain, buf())
local i = 0
domain_subtree:add(f_domain_id, buf(i, 16))
i = i + 16
domain_subtree:add_le(f_domain_local_id, buf(i, 2))
end