diff --git a/dissector/baichuan.lua b/dissector/baichuan.lua index 905a67c..6657992 100644 --- a/dissector/baichuan.lua +++ b/dissector/baichuan.lua @@ -102,6 +102,7 @@ function bc_protocol.dissector(buffer, pinfo, tree) end -- bin_offset is either nil (no binary data) or nonzero + -- TODO: bin_offset is actually stateful! local bin_offset = nil if header_len == 24 then bin_offset = buffer(20, 4):le_uint() @@ -113,6 +114,8 @@ function bc_protocol.dissector(buffer, pinfo, tree) local header = bc_subtree:add(bc_protocol, buffer(0, header_len), "Baichuan Message Header, length: " .. header_len) + pinfo.cols['info'] = msg_type_str .. ", type " .. msg_type .. ", " .. msg_len .. " bytes" + header:add_le(magic_bytes, buffer(0, 4)) header:add_le(message_id, buffer(4, 4)) :append_text(" (" .. msg_type_str .. ")")