/// <summary> /// Removes a MACAddress from the spoofed address list /// </summary> /// <param name="macAddress">The MACAddress to remove</param> public void RemoveFromSpoofedAddresses(MACAddress macAddress) { lmacSpoofAdresses.Remove(macAddress); }
/// <summary> /// Returns whether a MACAddress is contained in this interfaces spoofed address list. /// </summary> /// <param name="macAddress">The MACAddress to search for</param> /// <returns>A bool indicating whether a MACAddress is contained in this interfaces spoofed address list.</returns> public bool UsesSpoofedAddress(MACAddress macAddress) { return(lmacSpoofAdresses.Contains(macAddress)); }
/// <summary> /// Adds a MACAddress here to announce it as spoofed address. The interface will not pass traffic with this source MACAddress to connected traffic handlers if the property AutoExcludeOwnTraffic is also set. /// </summary> /// <param name="macAddress">The MACAddress to add</param> public void AddToSpoofedAddresses(MACAddress macAddress) { lmacSpoofAdresses.Add(macAddress); }