RDPUDP dissector: cookie hash is present in SYN packet instead of SYN/ACK

This commit is contained in:
David Fort 2021-05-20 14:54:36 +02:00 committed by akallabeth
parent 1d53117508
commit 4ec6014964

View File

@ -289,12 +289,14 @@ function dissectV1(tvbuf, pktinfo, tree)
local versionVal = tvbuf:range(startAt, 2):uint() local versionVal = tvbuf:range(startAt, 2):uint()
startAt = startAt + 2 startAt = startAt + 2
if haveAck and versionVal == 0x101 then if versionVal == 0x101 then
synexItem:add(pf_udp_synex_cookiehash, tvbuf:range(startAt, 32)) if not haveAck then
startAt = startAt + 32 synexItem:add(pf_udp_synex_cookiehash, tvbuf:range(startAt, 32))
startAt = startAt + 32
-- switch to UDP2 else
tableRecord.switchToUdp2 = pktinfo.number -- switch to UDP2
tableRecord.switchToUdp2 = pktinfo.number
end
end end
end end