Remove unused and newly unrequired arguments to the pcap check functions (which

replace the old callbacks) in scripts
This commit is contained in:
kris 2010-09-19 02:15:19 +00:00
parent de4ba536de
commit fa858e041b
5 changed files with 19 additions and 19 deletions

View file

@ -145,7 +145,7 @@ end
-- This is all we can use since we can get various protocols back from
-- different hosts
local function check (size, layer2, layer3)
local check = function(layer3)
local ip = packet.Packet:new(layer3, layer3:len())
return bin.pack('A', ip.ip_bin_dst)
end
@ -338,9 +338,9 @@ action = function(host)
end
local test = bin.pack('A', pkt.ip_bin_src)
local status, length, layer2, layer3 = pcap:pcap_receive()
while status and test ~= check(length, layer2, layer3) do
status, length, layer2, layer3 = pcap:pcap_receive()
local status, length, _, layer3 = pcap:pcap_receive()
while status and test ~= check(layer3) do
status, length, _, layer3 = pcap:pcap_receive()
end
if status then