77 references to AddressFamily
SMSvcHost (1)
System\ServiceModel\Activation\RoutingTable.cs (1)
142
(foundAddress.Equals(IPAddress.Any) && foundAddress.
AddressFamily
== System.Net.Sockets.AddressFamily.InterNetwork) ||
System (48)
net\System\Net\_AutoWebProxyScriptHelper.cs (8)
317
if (ipHostEntry.AddressList[i].
AddressFamily
== AddressFamily.InterNetwork)
343
if (ipHostEntry.AddressList[i].
AddressFamily
== AddressFamily.InterNetwork)
356
if (!IPAddress.IsLoopback(ipAddresses[i]) && ipAddresses[i].
AddressFamily
== AddressFamily.InterNetwork)
774
if(address.
AddressFamily
!= prefixAddress.
AddressFamily
)
789
( (address.
AddressFamily
== AddressFamily.InterNetworkV6) &&
792
( (address.
AddressFamily
== AddressFamily.InterNetwork) &&
846
int MaxBytes = (prefixAddress.
AddressFamily
== AddressFamily.InterNetworkV6)?IPAddress.IPv6AddressBytes:IPAddress.IPv4AddressBytes;
net\System\Net\_FtpControlStream.cs (4)
579
string passiveCommand = (ServerAddress.
AddressFamily
== AddressFamily.InterNetwork) ? "PASV" : "EPSV";
582
string portCommand = (ServerAddress.
AddressFamily
== AddressFamily.InterNetwork) ? "PORT" : "EPRT";
1128
if (ServerAddress.
AddressFamily
== AddressFamily.InterNetwork) {
1130
} else if (ServerAddress.
AddressFamily
== AddressFamily.InterNetworkV6) {
net\System\Net\DNS.cs (2)
394
if ( address.
AddressFamily
== AddressFamily.InterNetworkV6 ) {
515
if (IPAddress.TryParse(hostName, out address) && (address.
AddressFamily
!= AddressFamily.InterNetworkV6 || Socket.LegacySupportsIPv6))
net\System\Net\IPAddress.cs (3)
626
if (
AddressFamily
!= AddressFamily.InterNetworkV6) {
723
if (
AddressFamily
== AddressFamily.InterNetworkV6)
740
if (
AddressFamily
== AddressFamily.InterNetwork)
net\System\Net\IPEndPoint.cs (2)
51
return m_Address.
AddressFamily
;
118
if (m_Address.
AddressFamily
== AddressFamily.InterNetworkV6)
net\System\Net\NetworkInformation\ping.cs (5)
336
if (address.
AddressFamily
== AddressFamily.InterNetwork)
469
if (address.
AddressFamily
== AddressFamily.InterNetwork)
628
ipv6 = (address.
AddressFamily
== AddressFamily.InterNetworkV6)?true:false;
746
if (ip.
AddressFamily
== AddressFamily.InterNetwork && !Socket.OSSupportsIPv4)
749
else if ((ip.
AddressFamily
== AddressFamily.InterNetworkV6 && !Socket.OSSupportsIPv6))
net\System\Net\NetworkInformation\SystemUnicastIPAddressInformation.cs (3)
40
if (ipAddress.
AddressFamily
== AddressFamily.InterNetwork) {
41
ipv4Mask = PrefixLengthToSubnetMask(prefixLength, ipAddress.
AddressFamily
);
53
if(Address.
AddressFamily
!= AddressFamily.InterNetwork){
net\System\Net\ServicePoint.cs (1)
1413
if ( remoteIPEndPoint.Address.
AddressFamily
==AddressFamily.InterNetwork ) {
net\System\Net\SocketAddress.cs (3)
135
: this(ipAddress.
AddressFamily
,
136
((ipAddress.
AddressFamily
== AddressFamily.InterNetwork) ? IPv4AddressSize : IPv6AddressSize)) {
142
if (ipAddress.
AddressFamily
== AddressFamily.InterNetworkV6) {
net\System\Net\Sockets\_MultipleConnectAsync.cs (3)
397
while (!socket.CanTryAddressFamily(rval.
AddressFamily
));
450
if (rval.
AddressFamily
== AddressFamily.InterNetworkV6)
454
else if (rval.
AddressFamily
== AddressFamily.InterNetwork)
net\System\Net\Sockets\Socket.cs (4)
1054
if (!CanTryAddressFamily(address.
AddressFamily
)) {
1106
if (CanTryAddressFamily(address.
AddressFamily
)) {
3133
if (!CanTryAddressFamily(address.
AddressFamily
)) {
7096
if (!context.socket.CanTryAddressFamily(currentAddressSnapshot.
AddressFamily
))
net\System\Net\Sockets\TCPClient.cs (3)
238
if (address.
AddressFamily
== AddressFamily.InterNetwork && ipv4Socket != null) {
252
m_Family = address.
AddressFamily
;
256
else if ( address.
AddressFamily
== m_Family ) {
net\System\Net\Sockets\UDPClient.cs (7)
357
if (address.
AddressFamily
== AddressFamily.InterNetwork && ipv4Socket != null) {
371
m_Family = address.
AddressFamily
;
375
else if (address.
AddressFamily
== m_Family) {
564
for (;i<addresses.Length && addresses[i].
AddressFamily
!= m_Family; i++);
656
for (;i<addresses.Length && addresses[i].
AddressFamily
!= m_Family; i++);
809
if ( multicastAddr.
AddressFamily
!= m_Family ) {
945
if ( multicastAddr.
AddressFamily
!= m_Family ) {
System.Runtime.Remoting (6)
channels\core\corechannel.cs (3)
210
return IsLocalIpAddress(s_CachedIPHostEntry, remoteAddress.
AddressFamily
, remoteAddress);
221
if (addressList[i].
AddressFamily
== addressFamily)
282
if (addressList[i].
AddressFamily
== addressFamily)
channels\core\socketcache.cs (1)
89
if (address.
AddressFamily
== AddressFamily.InterNetworkV6)
channels\http\httpserverchannel.cs (1)
165
if (_bindToAddr.
AddressFamily
== AddressFamily.InterNetworkV6)
channels\tcp\tcpserverchannel.cs (1)
187
if (_bindToAddr.
AddressFamily
== AddressFamily.InterNetworkV6)
System.ServiceModel (8)
System\ServiceModel\Channels\PeerIPHelper.cs (4)
221
if (address.
AddressFamily
== AddressFamily.InterNetwork)
231
if (address.
AddressFamily
!= AddressFamily.InterNetworkV6)
369
return address.
AddressFamily
== AddressFamily.InterNetwork;
374
return address.
AddressFamily
== AddressFamily.InterNetworkV6;
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
135
if (address.
AddressFamily
== AddressFamily.InterNetworkV6)
System\ServiceModel\Channels\PnrpPeerResolver.cs (1)
451
if (address.
AddressFamily
== AddressFamily.InterNetworkV6
System\ServiceModel\Channels\SocketConnection.cs (2)
1710
AddressFamily addressFamily = addresses[i].
AddressFamily
;
1865
AddressFamily addressFamily = addresses[currentIndex].
AddressFamily
;
System.ServiceModel.Channels (9)
System\ServiceModel\Channels\ServerUdpOutputChannel.cs (4)
33
AddressFamily family = address.
AddressFamily
;
168
if (remoteAddresses[i].
AddressFamily
== socket.AddressFamily)
193
if (address.
AddressFamily
== AddressFamily.InterNetwork && useIPv4)
217
else if (address.
AddressFamily
== AddressFamily.InterNetworkV6 && useIPv6)
System\ServiceModel\Channels\UdpChannelFactory.cs (2)
215
if (UdpUtility.TryGetLoopbackInterfaceIndex(adapters[i], localAddress.
AddressFamily
== AddressFamily.InterNetwork, out interfaceIndex))
222
else if (localAddress.
AddressFamily
== AddressFamily.InterNetworkV6)
System\ServiceModel\Channels\UdpChannelListener.cs (1)
559
if (UdpUtility.TryGetLoopbackInterfaceIndex(adapters[i], address.
AddressFamily
== AddressFamily.InterNetwork, out interfaceIndex))
System\ServiceModel\Channels\UdpUtility.cs (2)
110
bool isIPv6 = (ipAddress.
AddressFamily
== AddressFamily.InterNetworkV6);
322
if (address.
AddressFamily
== AddressFamily.InterNetwork)
System.Web (1)
State\OutOfProcStateClientManager.cs (1)
206
if (ipv6Address.
AddressFamily
!= AddressFamily.InterNetworkV6) {
WsatConfig (2)
Configuration\HttpWrapper.cs (2)
165
if (source.
AddressFamily
== AddressFamily.InterNetwork)
178
else if (source.
AddressFamily
== AddressFamily.InterNetworkV6)
WsatUI (2)
Configuration\HttpWrapper.cs (2)
165
if (source.
AddressFamily
== AddressFamily.InterNetwork)
178
else if (source.
AddressFamily
== AddressFamily.InterNetworkV6)