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:
@@ -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
|
||||
|
Reference in New Issue
Block a user