1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Fix a bug in broadcast-ping: concat instead of comma

This commit is contained in:
dmiller
2019-09-19 17:31:58 +00:00
parent e38e834ffc
commit 881c38cefb

View File

@@ -110,7 +110,7 @@ local icmp_packet = function(srcIP, dstIP, ttl, data_length, mtu, seqNo, icmp_id
--IP header --IP header
local ip_bin = "\x45\x00", -- IPv4, no options, no DSCN, no ECN local ip_bin = "\x45\x00" .. -- IPv4, no options, no DSCN, no ECN
string.pack(">I2I2", string.pack(">I2I2",
20 + #icmp_msg, -- total length 20 + #icmp_msg, -- total length
0) -- IP ID 0) -- IP ID