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