mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-07 22:21:14 +02:00
[osinetwork] checksum
This commit is contained in:
@@ -12,7 +12,7 @@ function utils.checksum(data)
|
||||
|
||||
--Add left-over byte, if any
|
||||
if (count > 0) then
|
||||
sum = sum + string.unpack('>B', data, offset)
|
||||
sum = sum + (string.unpack('>B', data, offset) << 8)
|
||||
end
|
||||
|
||||
--Fold 32-bit sum to 16 bits
|
||||
|
@@ -255,7 +255,7 @@
|
||||
["osinetwork"] = {
|
||||
["manifestVersion"] = "1.0",
|
||||
["package"] = "osinetwork",
|
||||
["version"] = "2.3.0",
|
||||
["version"] = "2.3.1",
|
||||
["name"] = "OSI Network stack",
|
||||
["repo"] = "tree/master/network",
|
||||
["description"] = "A close to official rfc emulation of the OSI layers for OpenOS. Include Ethernet, ARP, ICMP, UDP. Also provide a luasocket libe librairy",
|
||||
|
Binary file not shown.
@@ -277,7 +277,7 @@
|
||||
note = "Are provided : ping, ifup, ifdown, arp, nc, netstat. Any one of theses tools may be moved to a separate package at any time",
|
||||
authors = "AR2000AR",
|
||||
repo = "tree/master/network",
|
||||
version = "2.3.0"
|
||||
version = "2.3.1"
|
||||
},
|
||||
["dns_common"] = {
|
||||
files = {
|
||||
|
Reference in New Issue
Block a user