Wireshark dissector for Pro DJ Link protocol
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

show meaning of arg tags in dissector pane

Stella bb8ac4cc 8d7c8c92

+18 -1
+18 -1
pro_dj_link.lua
··· 183 183 [0x49535350] = "PSSI (Song Structure)", 184 184 } 185 185 186 + local ARG_TAGS = { 187 + [0x00] = "none", 188 + [0x02] = "str", 189 + [0x03] = "blob", 190 + [0x06] = "u32", 191 + } 192 + 186 193 -- Table to track TCP streams that have been identified as PDJL 187 194 local pdjl_streams = {} 188 195 ··· 796 803 if msg_len - (current - off) >= 5 and buf(current, 1):uint() == 0x14 then 797 804 local tag_len = buf(current+1, 4):uint() 798 805 if msg_len - (current - off) >= 5 + tag_len then 799 - msg_tree:add(f_db_tag_blob, buf(current+5, tag_len)) 806 + local tag_item = msg_tree:add(f_db_tag_blob, buf(current+5, tag_len)) 807 + local arg_types = {} 808 + for i = 0, tag_len - 1 do 809 + local t = buf(current+5+i, 1):uint() 810 + if t ~= 0 then 811 + table.insert(arg_types, ARG_TAGS[t] or string.format("0x%02x", t)) 812 + end 813 + end 814 + if #arg_types > 0 then 815 + tag_item:set_text("Arg Types: " .. table.concat(arg_types, ", ")) 816 + end 800 817 current = current + 5 + tag_len 801 818 end 802 819 end