diff --git a/network/lib/network/utils.lua b/network/lib/network/utils.lua index a777bb8..a1e877b 100644 --- a/network/lib/network/utils.lua +++ b/network/lib/network/utils.lua @@ -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 diff --git a/packages/manifest b/packages/manifest index c0823a6..6cba87b 100644 --- a/packages/manifest +++ b/packages/manifest @@ -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", diff --git a/packages/osinetwork.tar b/packages/osinetwork.tar index e6008bc..06afa0d 100644 Binary files a/packages/osinetwork.tar and b/packages/osinetwork.tar differ diff --git a/programs.cfg b/programs.cfg index 5da32fb..6de1097 100644 --- a/programs.cfg +++ b/programs.cfg @@ -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 = {