mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Indentation fix.
This commit is contained in:
parent
3b171708f2
commit
b45f3e89f5
1 changed files with 5 additions and 5 deletions
|
|
@ -148,8 +148,8 @@ local function matches(addr, pattern)
|
|||
end
|
||||
|
||||
local function get_manuf(mac)
|
||||
local catch = function() return "Unknown" end
|
||||
local try = nmap.new_try(catch)
|
||||
local catch = function() return "Unknown" end
|
||||
local try = nmap.new_try(catch)
|
||||
local mac_prefixes = try(datafiles.parse_mac_prefixes())
|
||||
local prefix = string.upper(string.format("%02x%02x%02x", mac[1], mac[2], mac[3]))
|
||||
return mac_prefixes[prefix] or "Unknown"
|
||||
|
|
@ -163,9 +163,9 @@ local function format_mac(mac)
|
|||
octets[#octets + 1] = string.format("%02x", v)
|
||||
end
|
||||
|
||||
local out = stdnse.output_table()
|
||||
out.address = stdnse.strjoin(":", octets)
|
||||
out.manuf = get_manuf(mac)
|
||||
local out = stdnse.output_table()
|
||||
out.address = stdnse.strjoin(":", octets)
|
||||
out.manuf = get_manuf(mac)
|
||||
return out
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue