mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
ospf.lua: Fixed error in checksum calculation for hello and dbdescription packets.
This commit is contained in:
parent
715525f31b
commit
93a54ee8b1
1 changed files with 2 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ OSPF = {
|
|||
return tostring(self.header) .. data
|
||||
end
|
||||
local data = tostr()
|
||||
self.header.chksum = packet.in_cksum(data:sub(1,16) .. data:sub(19))
|
||||
self.header.chksum = packet.in_cksum(data:sub(1,12) .. data:sub(25))
|
||||
return tostr()
|
||||
end,
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ OSPF = {
|
|||
return tostring(self.header) .. data
|
||||
end
|
||||
local data = tostr()
|
||||
self.header.chksum = packet.in_cksum(data:sub(1,16) .. data:sub(19))
|
||||
self.header.chksum = packet.in_cksum(data:sub(1,12) .. data:sub(25))
|
||||
return tostr()
|
||||
end,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue