mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 14:41:14 +02:00
[osinetwork] checksum
This commit is contained in:
@@ -12,7 +12,7 @@ function utils.checksum(data)
|
|||||||
|
|
||||||
--Add left-over byte, if any
|
--Add left-over byte, if any
|
||||||
if (count > 0) then
|
if (count > 0) then
|
||||||
sum = sum + string.unpack('>B', data, offset)
|
sum = sum + (string.unpack('>B', data, offset) << 8)
|
||||||
end
|
end
|
||||||
|
|
||||||
--Fold 32-bit sum to 16 bits
|
--Fold 32-bit sum to 16 bits
|
||||||
|
@@ -255,7 +255,7 @@
|
|||||||
["osinetwork"] = {
|
["osinetwork"] = {
|
||||||
["manifestVersion"] = "1.0",
|
["manifestVersion"] = "1.0",
|
||||||
["package"] = "osinetwork",
|
["package"] = "osinetwork",
|
||||||
["version"] = "2.3.0",
|
["version"] = "2.3.1",
|
||||||
["name"] = "OSI Network stack",
|
["name"] = "OSI Network stack",
|
||||||
["repo"] = "tree/master/network",
|
["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",
|
["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",
|
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",
|
authors = "AR2000AR",
|
||||||
repo = "tree/master/network",
|
repo = "tree/master/network",
|
||||||
version = "2.3.0"
|
version = "2.3.1"
|
||||||
},
|
},
|
||||||
["dns_common"] = {
|
["dns_common"] = {
|
||||||
files = {
|
files = {
|
||||||
|
Reference in New Issue
Block a user