Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SystemUnicastIPAddressInformation()

System.Net.NetworkInformation.SystemUnicastIPAddressInformation.SystemUnicastIPAddressInformation ( global::Interop::IpHlpApi::IpAdapterUnicastAddress adapterAddress)
inlinepackage

Definition at line 58 of file SystemUnicastIPAddressInformation.cs.

59 {
60 IPAddress iPAddress = adapterAddress.address.MarshalIPAddress();
61 _innerInfo = new SystemIPAddressInformation(iPAddress, adapterAddress.flags);
62 _prefixOrigin = adapterAddress.prefixOrigin;
63 _suffixOrigin = adapterAddress.suffixOrigin;
64 _dadState = adapterAddress.dadState;
65 _validLifetime = adapterAddress.validLifetime;
66 _preferredLifetime = adapterAddress.preferredLifetime;
67 _dhcpLeaseLifetime = adapterAddress.leaseLifetime;
68 _prefixLength = adapterAddress.prefixLength;
69 if (iPAddress.AddressFamily == AddressFamily.InterNetwork)
70 {
71 _ipv4Mask = UnicastIPAddressInformation.PrefixLengthToSubnetMask(_prefixLength, iPAddress.AddressFamily);
72 }
73 }

References System.Net.NetworkInformation.SystemUnicastIPAddressInformation._dadState, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._dhcpLeaseLifetime, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._innerInfo, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._ipv4Mask, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._preferredLifetime, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._prefixLength, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._prefixOrigin, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._suffixOrigin, System.Net.NetworkInformation.SystemUnicastIPAddressInformation._validLifetime, System.Net.IPAddress.AddressFamily, and System.Net.NetworkInformation.UnicastIPAddressInformation.PrefixLengthToSubnetMask().

Referenced by System.Net.NetworkInformation.SystemUnicastIPAddressInformation.MarshalUnicastIpAddressInformationCollection().