119 internalIPAddressCollection.
InternalAdd(iPAddress);
120 ptr = ipAdapterAddress.
next;
122 return internalIPAddressCollection;
133 ptr = ipAdapterAddress.
next;
135 return iPAddressInformationCollection;
660 [DllImport(
"iphlpapi.dll", ExactSpelling =
true)]
663 [DllImport(
"iphlpapi.dll")]
666 [DllImport(
"iphlpapi.dll")]
669 [DllImport(
"iphlpapi.dll")]
672 [DllImport(
"iphlpapi.dll")]
675 [DllImport(
"iphlpapi.dll")]
678 [DllImport(
"iphlpapi.dll")]
681 [DllImport(
"iphlpapi.dll")]
684 [DllImport(
"iphlpapi.dll")]
687 [DllImport(
"iphlpapi.dll")]
690 [DllImport(
"iphlpapi.dll")]
693 [DllImport(
"iphlpapi.dll")]
696 [DllImport(
"iphlpapi.dll")]
699 [DllImport(
"iphlpapi.dll")]
702 [DllImport(
"iphlpapi.dll")]
705 [DllImport(
"iphlpapi.dll")]
708 [DllImport(
"iphlpapi.dll")]
731 [DllImport(
"ws2_32.dll", SetLastError =
true)]
734 [DllImport(
"ws2_32.dll", EntryPoint =
"WSAIoctl", SetLastError =
true)]
static uint GetUdpTable(IntPtr pUdpTable, ref uint dwOutBufLen, bool order)
static uint GetPerAdapterInfo(uint IfIndex, IntPtr pPerAdapterInfo, ref uint pOutBufLen)
static uint GetExtendedTcpTable(IntPtr pTcpTable, ref uint dwOutBufLen, bool order, uint IPVersion, TcpTableClass tableClass, uint reserved)
static uint GetIcmpStatistics(out MibIcmpInfo statistics)
static uint CancelMibChangeNotify2(IntPtr notificationHandle)
static void FreeMibTable(IntPtr handle)
static uint GetIfEntry2(ref MibIfRow2 pIfRow)
static uint GetIpStatisticsEx(out MibIpStats statistics, AddressFamily family)
static uint GetIcmpStatisticsEx(out MibIcmpInfoEx statistics, AddressFamily family)
static uint GetTcpTable(IntPtr pTcpTable, ref uint dwOutBufLen, bool order)
static uint GetBestInterfaceEx(byte[] ipAddress, out int index)
static uint GetTcpStatisticsEx(out MibTcpStats statistics, AddressFamily family)
static unsafe uint NotifyStableUnicastIpAddressTable(AddressFamily addressFamily, out SafeFreeMibTable table, delegate *unmanaged< IntPtr, IntPtr, void > callback, IntPtr context, out SafeCancelMibChangeNotify notificationHandle)
static uint GetExtendedUdpTable(IntPtr pUdpTable, ref uint dwOutBufLen, bool order, uint IPVersion, UdpTableClass tableClass, uint reserved)
static uint GetAdaptersAddresses(AddressFamily family, uint flags, IntPtr pReserved, IntPtr adapterAddresses, ref uint outBufLen)
static uint GetUdpStatisticsEx(out MibUdpStats statistics, AddressFamily family)
static uint GetNetworkParams(IntPtr pFixedInfo, ref uint pOutBufLen)
GetAdaptersAddressesFlags
@ IncludeTunnelBindingOrder
@ TcpTableOwnerPidListener
@ TcpTableOwnerModuleListener
@ TcpTableOwnerModuleConnections
@ TcpTableOwnerPidConnections
@ TcpTableBasicConnections
@ Ipv6OtherStatefulConfig
@ IPv6ManagedAddressConfigurationSupported
static SocketError WSAEventSelect([In] SafeSocketHandle socketHandle, [In] SafeHandle Event, [In] AsyncEventBits NetworkEvents)
static SocketError WSAIoctl_Blocking(SafeSocketHandle socketHandle, [In] int ioControlCode, [In] byte[] inBuffer, [In] int inBufferSize, [Out] byte[] outBuffer, [In] int outBufferSize, out int bytesTransferred, [In] IntPtr overlapped, [In] IntPtr completionRoutine)
@ FdRoutingInterfaceChange
static readonly int IPv4AddressSize
static void Copy(int[] source, int startIndex, IntPtr destination, int length)
static ? object PtrToStructure(IntPtr ptr, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors|DynamicallyAccessedMemberTypes.NonPublicConstructors)] Type structureType)
IP_ADDR_STRING DnsServerList
AdapterAddressFlags flags
static IPAddressInformationCollection MarshalIpAddressInformationCollection(IntPtr ptr)
static InternalIPAddressCollection MarshalIpAddressCollection(IntPtr ptr)
uint dhcpv6ClientDuidLength
InterfaceConnectionType connectionType
InterfaceTunnelType tunnelType
OperationalStatus operStatus
IntPtr firstDnsServerAddress
IntPtr firstAnycastAddress
IpSocketAddress dhcpv6Server
NetworkInterfaceType type
IntPtr firstMulticastAddress
IntPtr firstGatewayAddress
IpSocketAddress dhcpv4Server
IntPtr firstWinsServerAddress
IntPtr firstUnicastAddress
DuplicateAddressDetectionState dadState
SuffixOrigin suffixOrigin
AdapterAddressFlags flags
PrefixOrigin prefixOrigin
IpAddrString dnsServerList
IPAddress MarshalIPAddress()
uint destinationUnreachables
byte interfaceAndOperStatusFlags
uint physicalAddressLength
byte[] permanentPhysicalAddress
InterfaceTunnelType tunnelType
OperationalStatus operStatus
InterfaceConnectionType connectionType
NetworkInterfaceType type
uint outputPacketRoutingDiscards
uint packetsFragmentCreated
uint receivedPacketsWithAddressErrors
uint packetsFragmentFailed
uint outputPacketsWithNoRoute
uint receivedPacketsDelivered
uint packetsReassemblyRequired
uint packetsReassemblyFailed
uint packetOutputRequests
uint packetReassemblyTimeout
uint receivedPacketsWithHeaderErrors
uint receivedPacketsDiscarded
uint receivedPacketsWithUnknownProtocols
uint outputPacketsDiscarded
unsafe ReadOnlySpan< byte > localAddrAsSpan
unsafe fixed byte localAddr[16]
unsafe ReadOnlySpan< byte > remoteAddrAsSpan
unsafe fixed byte remoteAddr[16]
uint reTransmissionAlgorithm
uint failedConnectionAttempts
uint cumulativeConnections
uint maximumRetransmissionTimeOut
uint minimumRetransmissionTimeOut
uint segmentsSentWithReset
unsafe ReadOnlySpan< byte > localAddrAsSpan
unsafe fixed byte localAddr[16]
uint incomingDatagramsWithErrors
uint incomingDatagramsDiscarded
static readonly IntPtr Zero