1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-06 06:29:03 +00:00

reverted bad commits

This commit is contained in:
patrik
2012-10-06 19:38:15 +00:00
parent 10a34f626a
commit 655f766445
11 changed files with 56 additions and 295 deletions

View File

@@ -261,10 +261,7 @@ end
-- Sets necessary probe data in registry
local setreg = function(host, proto, port)
if not nmap.registry[host.ip] then
nmap.registry[host.ip] = {}
end
nmap.registry[host.ip]['pathmtuprobe'] = {
host.registry['pathmtuprobe'] = {
['proto'] = proto,
['port'] = port
}
@@ -301,8 +298,8 @@ action = function(host)
local mtuset
local sock = nmap.new_dnet()
local pcap = nmap.new_socket()
local proto = nmap.registry[host.ip]['pathmtuprobe']['proto']
local port = nmap.registry[host.ip]['pathmtuprobe']['port']
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 try = nmap.new_try()