Example #1
0
 /// <summary>
 /// Initializes a NetInterface
 /// </summary>
 /// <param name="device">Parent device</param>
 /// <param name="intNum">NetInterface index number</param>
 /// <param name="intType">NetInterface type</param>
 public NetInterface(IDevice device, int intNum, string intType = "g")
 {
     parentDevice = device;
     type         = intType;
     num          = intNum;
     state        = false;
     mac          = new MACAddress();
     address_ipv4 = new IPv4Address("0.0.0.0");
 }
Example #2
0
 /// <summary>
 /// Set the IP address of the NetInterface
 /// </summary>
 public void SetIPAddress(string ip)
 {
     address_ipv4 = new IPv4Address(ip);
 }