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

@@ -1,4 +1,5 @@
local bin = require "bin"
local ipOps = require "ipOps"
local math = require "math"
local nmap = require "nmap"
local packet = require "packet"
@@ -300,8 +301,8 @@ action = function(host)
local pcap = nmap.new_socket()
local proto = host.registry['pathmtuprobe']['proto']
local port = host.registry['pathmtuprobe']['port']
local saddr = packet.toip(host.bin_ip_src)
local daddr = packet.toip(host.bin_ip)
local saddr = ipOps.str_to_ip(host.bin_ip_src)
local daddr = ipOps.str_to_ip(host.bin_ip)
local try = nmap.new_try()
local status, pkt, ip