public TestDevice(PhysicalAddress sourceMAC, IPAddress sourceIPAddress, NICHelper nicHelper) { _sourceIPAddress = sourceIPAddress; _sourceMAC = sourceMAC; _ncard = nicHelper.GetRawNIC(sourceMAC); _ncard.Open(); _ncard.OnPacketArrival += new PacketArrivalEventHandler(onPacketArrival); _ncard.StartCapture(); }
//private static readonly log4net.ILog _log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); public NetSender(PhysicalAddress probeMAC, NICHelper nicHelper) { _ncard = nicHelper.GetRawNIC(probeMAC); _ncard.Open(); _probeMAC = probeMAC; }