Skip to content

Commit

Permalink
only warn if unable to register heuristic dissector
Browse files Browse the repository at this point in the history
probably old wireshark
  • Loading branch information
mdavidsaver committed May 12, 2018
1 parent ada769c commit 6ccc978
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pva.lua
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,11 @@ end
-- So don't register the udp dissector, which is only necessary
-- when using a non-standard port for searches.
--pva:register_heuristic("udp", test_pva)
pva:register_heuristic("tcp", test_pva)
local status, err = pcall(function() pva:register_heuristic("tcp", test_pva) end)
if not status then
print("Failed to register PVA heuristic dissector. Must manually specify TCP port! (try newer wireshark?)")
print(err)
end

local function decodeStatus (buf, pkt, t, isbe)
local code = buf(0,1):uint()
Expand Down

0 comments on commit 6ccc978

Please sign in to comment.