mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Remove redundant code, already part of Frame:new()
This commit is contained in:
@@ -150,7 +150,6 @@ action = function()
|
||||
if ( status ) then
|
||||
local header = ATAoE.Header.parse(l3_data)
|
||||
local f = packet.Frame:new(l2_data)
|
||||
f:ether_parse()
|
||||
|
||||
local str = ("Server: %s; Version: %d; Major: %d; Minor: %d"):format(
|
||||
stdnse.format_mac(f.mac_src),
|
||||
|
||||
@@ -113,7 +113,6 @@ ftp_helper = {
|
||||
|
||||
-- Get ethernet values
|
||||
local f = packet.Frame:new(l2data)
|
||||
f:ether_parse()
|
||||
|
||||
local p = packet.Packet:new(l3data, #l3data)
|
||||
if isIp4 then
|
||||
|
||||
Reference in New Issue
Block a user