1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 14:41:14 +02:00

[osinetwork] make sure msb is used

This commit is contained in:
2023-06-16 21:31:14 +02:00
parent 3e032e4309
commit 0a784ea03d

View File

@@ -66,7 +66,7 @@ end
---@return number
function ICMPPacket:calculateChecksum()
return utils.checksum(string.pack(self.headerFormat, self:type(), self:code(), 0, self:param()) .. string.pack('c' .. #self:payload(), self:payload()))
return utils.checksum(string.pack(self.headerFormat, self:type(), self:code(), 0, self:param()) .. string.pack('>c' .. #self:payload(), self:payload()))
end
---@param value? number