Skip to content

Commit d39aa3f

Browse files
committed
Replaced unix with the list of OSes
1 parent cc4289b commit d39aa3f

File tree

3 files changed

+126
-18
lines changed

3 files changed

+126
-18
lines changed

src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixIPGlobalProperties.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,26 @@ namespace System.Net.NetworkInformation
1212
{
1313
internal abstract class UnixIPGlobalProperties : IPGlobalProperties
1414
{
15-
[UnsupportedOSPlatform("unix")]
15+
[UnsupportedOSPlatform("linux")]
16+
[UnsupportedOSPlatform("osx")]
17+
[UnsupportedOSPlatform("ios")]
18+
[UnsupportedOSPlatform("tvos")]
19+
[UnsupportedOSPlatform("freebsd")]
20+
[UnsupportedOSPlatform("illumos")]
21+
[UnsupportedOSPlatform("solaris")]
1622
public override string DhcpScopeName { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
1723

1824
public override string DomainName { get { return HostInformation.DomainName; } }
1925

2026
public override string HostName { get { return HostInformation.HostName; } }
2127

22-
[UnsupportedOSPlatform("unix")]
28+
[UnsupportedOSPlatform("linux")]
29+
[UnsupportedOSPlatform("osx")]
30+
[UnsupportedOSPlatform("ios")]
31+
[UnsupportedOSPlatform("tvos")]
32+
[UnsupportedOSPlatform("freebsd")]
33+
[UnsupportedOSPlatform("illumos")]
34+
[UnsupportedOSPlatform("solaris")]
2335
public override bool IsWinsProxy { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
2436

2537
public override NetBiosNodeType NodeType { get { return NetBiosNodeType.Unknown; } }

src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixMulticastIPAddressInformation.cs

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,76 @@ public UnixMulticastIPAddressInformation(IPAddress address)
1616

1717
public override IPAddress Address { get { return _address; } }
1818

19-
[UnsupportedOSPlatform("unix")]
19+
[UnsupportedOSPlatform("linux")]
20+
[UnsupportedOSPlatform("osx")]
21+
[UnsupportedOSPlatform("ios")]
22+
[UnsupportedOSPlatform("tvos")]
23+
[UnsupportedOSPlatform("freebsd")]
24+
[UnsupportedOSPlatform("illumos")]
25+
[UnsupportedOSPlatform("solaris")]
2026
public override bool IsDnsEligible { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
2127

22-
[UnsupportedOSPlatform("unix")]
28+
[UnsupportedOSPlatform("linux")]
29+
[UnsupportedOSPlatform("osx")]
30+
[UnsupportedOSPlatform("ios")]
31+
[UnsupportedOSPlatform("tvos")]
32+
[UnsupportedOSPlatform("freebsd")]
33+
[UnsupportedOSPlatform("illumos")]
34+
[UnsupportedOSPlatform("solaris")]
2335
public override bool IsTransient { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
2436

25-
[UnsupportedOSPlatform("unix")]
37+
[UnsupportedOSPlatform("linux")]
38+
[UnsupportedOSPlatform("osx")]
39+
[UnsupportedOSPlatform("ios")]
40+
[UnsupportedOSPlatform("tvos")]
41+
[UnsupportedOSPlatform("freebsd")]
42+
[UnsupportedOSPlatform("illumos")]
43+
[UnsupportedOSPlatform("solaris")]
2644
public override long AddressPreferredLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
2745

28-
[UnsupportedOSPlatform("unix")]
46+
[UnsupportedOSPlatform("linux")]
47+
[UnsupportedOSPlatform("osx")]
48+
[UnsupportedOSPlatform("ios")]
49+
[UnsupportedOSPlatform("tvos")]
50+
[UnsupportedOSPlatform("freebsd")]
51+
[UnsupportedOSPlatform("illumos")]
52+
[UnsupportedOSPlatform("solaris")]
2953
public override long AddressValidLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3054

31-
[UnsupportedOSPlatform("unix")]
55+
[UnsupportedOSPlatform("linux")]
56+
[UnsupportedOSPlatform("osx")]
57+
[UnsupportedOSPlatform("ios")]
58+
[UnsupportedOSPlatform("tvos")]
59+
[UnsupportedOSPlatform("freebsd")]
60+
[UnsupportedOSPlatform("illumos")]
61+
[UnsupportedOSPlatform("solaris")]
3262
public override long DhcpLeaseLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3363

34-
[UnsupportedOSPlatform("unix")]
64+
[UnsupportedOSPlatform("linux")]
65+
[UnsupportedOSPlatform("osx")]
66+
[UnsupportedOSPlatform("ios")]
67+
[UnsupportedOSPlatform("tvos")]
68+
[UnsupportedOSPlatform("freebsd")]
69+
[UnsupportedOSPlatform("illumos")]
70+
[UnsupportedOSPlatform("solaris")]
3571
public override DuplicateAddressDetectionState DuplicateAddressDetectionState { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3672

37-
[UnsupportedOSPlatform("unix")]
73+
[UnsupportedOSPlatform("linux")]
74+
[UnsupportedOSPlatform("osx")]
75+
[UnsupportedOSPlatform("ios")]
76+
[UnsupportedOSPlatform("tvos")]
77+
[UnsupportedOSPlatform("freebsd")]
78+
[UnsupportedOSPlatform("illumos")]
79+
[UnsupportedOSPlatform("solaris")]
3880
public override PrefixOrigin PrefixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3981

40-
[UnsupportedOSPlatform("unix")]
82+
[UnsupportedOSPlatform("linux")]
83+
[UnsupportedOSPlatform("osx")]
84+
[UnsupportedOSPlatform("ios")]
85+
[UnsupportedOSPlatform("tvos")]
86+
[UnsupportedOSPlatform("freebsd")]
87+
[UnsupportedOSPlatform("illumos")]
88+
[UnsupportedOSPlatform("solaris")]
4189
public override SuffixOrigin SuffixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
4290
}
4391
}

src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixUnicastIPAddressInformation.cs

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,83 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength)
2121
public override IPAddress Address { get { return _address; } }
2222

2323
/// Gets a bool value that indicates whether the Internet Protocol (IP) address is legal to appear in a Domain Name System (DNS) server database.
24-
[UnsupportedOSPlatform("unix")]
24+
[UnsupportedOSPlatform("linux")]
25+
[UnsupportedOSPlatform("osx")]
26+
[UnsupportedOSPlatform("ios")]
27+
[UnsupportedOSPlatform("tvos")]
28+
[UnsupportedOSPlatform("freebsd")]
29+
[UnsupportedOSPlatform("illumos")]
30+
[UnsupportedOSPlatform("solaris")]
2531
public override bool IsDnsEligible { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
2632

2733
/// Gets a bool value that indicates whether the Internet Protocol (IP) address is transient.
28-
[UnsupportedOSPlatform("unix")]
34+
[UnsupportedOSPlatform("linux")]
35+
[UnsupportedOSPlatform("osx")]
36+
[UnsupportedOSPlatform("ios")]
37+
[UnsupportedOSPlatform("tvos")]
38+
[UnsupportedOSPlatform("freebsd")]
39+
[UnsupportedOSPlatform("illumos")]
40+
[UnsupportedOSPlatform("solaris")]
2941
public override bool IsTransient { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3042

3143
/// [To be supplied.]
32-
[UnsupportedOSPlatform("unix")]
44+
[UnsupportedOSPlatform("linux")]
45+
[UnsupportedOSPlatform("osx")]
46+
[UnsupportedOSPlatform("ios")]
47+
[UnsupportedOSPlatform("tvos")]
48+
[UnsupportedOSPlatform("freebsd")]
49+
[UnsupportedOSPlatform("illumos")]
50+
[UnsupportedOSPlatform("solaris")]
3351
public override long AddressPreferredLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3452

3553
/// [To be supplied.]
36-
[UnsupportedOSPlatform("unix")]
54+
[UnsupportedOSPlatform("linux")]
55+
[UnsupportedOSPlatform("osx")]
56+
[UnsupportedOSPlatform("ios")]
57+
[UnsupportedOSPlatform("tvos")]
58+
[UnsupportedOSPlatform("freebsd")]
59+
[UnsupportedOSPlatform("illumos")]
60+
[UnsupportedOSPlatform("solaris")]
3761
public override long AddressValidLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
3862

3963
/// Specifies the amount of time remaining on the Dynamic Host Configuration Protocol (DHCP) lease for this IP address.
40-
[UnsupportedOSPlatform("unix")]
64+
[UnsupportedOSPlatform("linux")]
65+
[UnsupportedOSPlatform("osx")]
66+
[UnsupportedOSPlatform("ios")]
67+
[UnsupportedOSPlatform("tvos")]
68+
[UnsupportedOSPlatform("freebsd")]
69+
[UnsupportedOSPlatform("illumos")]
70+
[UnsupportedOSPlatform("solaris")]
4171
public override long DhcpLeaseLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
4272

4373
/// Gets a value that indicates the state of the duplicate address detection algorithm.
44-
[UnsupportedOSPlatform("unix")]
74+
[UnsupportedOSPlatform("linux")]
75+
[UnsupportedOSPlatform("osx")]
76+
[UnsupportedOSPlatform("ios")]
77+
[UnsupportedOSPlatform("tvos")]
78+
[UnsupportedOSPlatform("freebsd")]
79+
[UnsupportedOSPlatform("illumos")]
80+
[UnsupportedOSPlatform("solaris")]
4581
public override DuplicateAddressDetectionState DuplicateAddressDetectionState { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
4682

4783
/// Gets a value that identifies the source of a unicast IP address prefix.
48-
[UnsupportedOSPlatform("unix")]
84+
[UnsupportedOSPlatform("linux")]
85+
[UnsupportedOSPlatform("osx")]
86+
[UnsupportedOSPlatform("ios")]
87+
[UnsupportedOSPlatform("tvos")]
88+
[UnsupportedOSPlatform("freebsd")]
89+
[UnsupportedOSPlatform("illumos")]
90+
[UnsupportedOSPlatform("solaris")]
4991
public override PrefixOrigin PrefixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
5092

5193
/// Gets a value that identifies the source of a unicast IP address suffix.
52-
[UnsupportedOSPlatform("unix")]
94+
[UnsupportedOSPlatform("linux")]
95+
[UnsupportedOSPlatform("osx")]
96+
[UnsupportedOSPlatform("ios")]
97+
[UnsupportedOSPlatform("tvos")]
98+
[UnsupportedOSPlatform("freebsd")]
99+
[UnsupportedOSPlatform("illumos")]
100+
[UnsupportedOSPlatform("solaris")]
53101
public override SuffixOrigin SuffixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } }
54102

55103
public override IPAddress IPv4Mask

0 commit comments

Comments
 (0)