1
0
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:
dmiller
2015-02-27 19:42:46 +00:00
parent 4f0518bd93
commit 204d37e4d7
16 changed files with 69 additions and 177 deletions

View File

@@ -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."