Пример #1
0
 /// <summary>
 /// Configure the IP address setup for a given network card
 /// </summary>
 /// <param name="nic">Network Device to configure</param>
 /// <param name="config">Configuration</param>
 public static void ConfigIP(HW.Network.NetworkDevice nic, IPv4Config config)
 {
     addressMap.Add(config.IPAddress.To32BitNumber(), nic);
     ipConfigs.Add(config);
     nic.DataReceived += HandlePacket;
 }
Пример #2
0
 /// <summary>
 /// Configure the IP address setup for a given network card
 /// </summary>
 /// <param name="nic">Network Device to configure</param>
 /// <param name="config">Configuration</param>
 public static void ConfigIP(HW.Network.NetworkDevice nic, IPv4Config config)
 {
     addressMap.Add(config.IPAddress.To32BitNumber(), nic);
     ipConfigs.Add(config);
     nic.DataReceived += HandlePacket;
 }