Capture Traffic from Specific IPs


function Packet_CaptureSpecificIP (msg, packet)

require('IpMatch')

if (myIpMatch == nil) then

-- One time only, set up the IpMatch object

myIpMatch = IpMatch:new()

myIpMatch:SetIP4Src("8.8.8.8") -- using example IP: google dns server

myIpMatch:SetIP4Dst("8.8.8.8")

end

if (myIpMatch:MatchIP4SrcOrDst(msg)) then

VoteForPacketCapture(msg)

end

end