Bugfix: A calculated UDP checksum of 0 should be set as 0xFFFF in the frame as per RFC 768. A checksum value of 0 in the frame is "special" and indicates that no checksum was calculated and hence receiver should not verify the same. This special case seems to be only for UDP, not TCP though.
Fixes #160
This commit is contained in:
parent
7f224f61cd
commit
2cad79b87e
@ -253,7 +253,11 @@ QVariant UdpProtocol::fieldData(int index, FieldAttrib attrib,
|
||||
if (data.is_override_cksum())
|
||||
cksum = data.cksum();
|
||||
else
|
||||
{
|
||||
cksum = protocolFrameCksum(streamIndex, CksumTcpUdp);
|
||||
if (cksum == 0)
|
||||
cksum = 0xFFFF;
|
||||
}
|
||||
qDebug("UDP cksum = %hu", cksum);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user