Beispiel #1
0
		internal virtual bool Update(IPAddressInformation item)
		{
			_hasChanged = false;
			IsDnsEligible = item.IsDnsEligible;
			IsTransient = item.IsTransient;
			return _hasChanged;
		}
Beispiel #2
0
            internal NetAddrInfo(IPAddressInformation addr, int ord)
            {
                m_Name = addr.Address.ToString();
                                    m_Order = ord;
                                    m_Bytes = addr.Address.GetAddressBytes();
                                    m_Transient = addr.IsTransient;
                                    m_Family = addr.Address.AddressFamily.ToString();
                                    m_IPv4 = addr.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork;
                                    m_IPv6 = addr.Address.AddressFamily == System.Net.Sockets.AddressFamily.InterNetworkV6;
                                    m_Unicast = addr is UnicastIPAddressInformation;

                                    if (m_Unicast)
                                    {
                                       var uaddr = (UnicastIPAddressInformation)addr;
                                       m_UnicastIPv4Mask = uaddr.IPv4Mask.GetAddressBytes();
                                       m_UnicastPreferredLifetimeSec = uaddr.AddressPreferredLifetime;
                                       m_UnicastValidLifetimeSec = uaddr.AddressValidLifetime;
                                       m_UnicastDHCPLeaseLifetimeSec = uaddr.DhcpLeaseLifetime;
                                    }
            }
Beispiel #3
0
		internal Ipv4AnycastAddress(IPAddressInformation address)
		{
			Address = address.Address;
			Update(address);
		}
Beispiel #4
0
		internal virtual bool Equals(IPAddressInformation item)
		{
			return item.Address.Equals(Address);
		}