/// <summary> /// Set ConfigIP for NetworkDevice /// </summary> /// <param name="nic">Network device.</param> /// <param name="config">IP Config</param> private static void SetConfigIP(NetworkDevice nic, IPConfig config) { NetworkConfiguration.AddConfig(nic, config); AddressMap.Add(config.IPAddress.Hash, nic); MACMap.Add(nic.MACAddress.Hash, nic); IPConfig.Add(config); nic.DataReceived = HandlePacket; }