/// <summary> /// Constructs a new Network Device based on a IP_ADAPTER_INFO struct. /// </summary> internal NetworkDevice(IPHelper.IP_ADAPTER_INFO adapterInfo) : base(adapterInfo.AdapterName) { SetAfapterInfo(adapterInfo); }
private void SetAfapterInfo(IPHelper.IP_ADAPTER_INFO adapterInfo) { m_adapterInfo=adapterInfo; m_ipAddressList = GetIpAddressList( adapterInfo.IpAddressList ); m_gatewaysList = GetIpGateways( adapterInfo.GatewayList ); }
private void SetAfapterInfo(IPHelper.IP_ADAPTER_INFO adapterInfo) { m_adapterInfo = adapterInfo; m_ipAddressList = GetIpAddressList(adapterInfo.IpAddressList); m_gatewaysList = GetIpGateways(adapterInfo.GatewayList); }