mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 20:29:03 +00:00
Replace packet.toip* and ip*tobin with ipOps.ip_to_str and str_to_ip
This commit is contained in:
@@ -56,8 +56,8 @@ icmpEchoRequest = function(ifname, host, addr)
|
||||
local probe = packet.Frame:new()
|
||||
probe.mac_src = iface.mac
|
||||
probe.mac_dst = host.mac_addr
|
||||
probe.ip_bin_src = packet.iptobin(iface.address)
|
||||
probe.ip_bin_dst = packet.iptobin(addr)
|
||||
probe.ip_bin_src = ipOps.ip_to_str(iface.address)
|
||||
probe.ip_bin_dst = ipOps.ip_to_str(addr)
|
||||
probe.echo_id = 0x1234
|
||||
probe.echo_seq = 6
|
||||
probe.echo_data = "Nmap host discovery."
|
||||
|
||||
Reference in New Issue
Block a user