Fix another packet batch parsing bug.

Extended/truncated logic was reversed.
This commit is contained in:
basil00
2019-10-03 05:02:37 +08:00
parent 0c773bc08f
commit bcba321048
+2 -2
View File
@@ -531,8 +531,8 @@ WinDivertHelperParsePacketExit:
pInfo->Fragment = (fragment? 1: 0);
pInfo->MF = (MF? 1: 0);
pInfo->FragOff = (UINT32)frag_off;
pInfo->Truncated = (total_len < packetLen? 1: 0);
pInfo->Extended = (total_len > packetLen? 1: 0);
pInfo->Truncated = (total_len > packetLen? 1: 0);
pInfo->Extended = (total_len < packetLen? 1: 0);
pInfo->Reserved1 = 0;
pInfo->IPHeader = ip_header;
pInfo->IPv6Header = ipv6_header;