diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionPool/HttpConnectionPool.Http3.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionPool/HttpConnectionPool.Http3.cs index 4af02bb397abdb..140e3ea2c03604 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionPool/HttpConnectionPool.Http3.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionPool/HttpConnectionPool.Http3.cs @@ -756,7 +756,7 @@ internal void HandleAltSvc(IEnumerable altSvcHeaderValues, TimeSpan? res if (!nextAuthorityPersist) { -#if !ILLUMOS && !SOLARIS +#if !ILLUMOS && !SOLARIS && !HAIKU _poolManager.StartMonitoringNetworkChanges(); #endif } diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPoolManager.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPoolManager.cs index a696e153ca5c89..b99f9e719c897e 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPoolManager.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPoolManager.cs @@ -44,7 +44,7 @@ internal sealed class HttpConnectionPoolManager : IDisposable private readonly IWebProxy? _proxy; private readonly ICredentials? _proxyCredentials; -#if !ILLUMOS && !SOLARIS +#if !ILLUMOS && !SOLARIS && !HAIKU private NetworkChangeCleanup? _networkChangeCleanup; #endif @@ -139,7 +139,7 @@ public HttpConnectionPoolManager(HttpConnectionSettings settings) } } -#if !ILLUMOS && !SOLARIS +#if !ILLUMOS && !SOLARIS && !HAIKU /// /// Starts monitoring for network changes. Upon a change, will be /// called for every in the . @@ -457,7 +457,7 @@ public void Dispose() pool.Value.Dispose(); } -#if !ILLUMOS && !SOLARIS +#if !ILLUMOS && !SOLARIS && !HAIKU _networkChangeCleanup?.Dispose(); #endif } diff --git a/src/libraries/System.Net.NetworkInformation/ref/System.Net.NetworkInformation.cs b/src/libraries/System.Net.NetworkInformation/ref/System.Net.NetworkInformation.cs index 8824cccc08e929..171b68cea1ad1d 100644 --- a/src/libraries/System.Net.NetworkInformation/ref/System.Net.NetworkInformation.cs +++ b/src/libraries/System.Net.NetworkInformation/ref/System.Net.NetworkInformation.cs @@ -178,6 +178,7 @@ protected IPGlobalProperties() { } public abstract System.Net.NetworkInformation.IcmpV6Statistics GetIcmpV6Statistics(); [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static System.Net.NetworkInformation.IPGlobalProperties GetIPGlobalProperties() { throw null; } public abstract System.Net.NetworkInformation.IPGlobalStatistics GetIPv4GlobalStatistics(); [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("freebsd")] @@ -401,9 +402,11 @@ public partial class NetworkChange public NetworkChange() { } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static event System.Net.NetworkInformation.NetworkAddressChangedEventHandler? NetworkAddressChanged { add { } remove { } } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static event System.Net.NetworkInformation.NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged { add { } remove { } } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.ObsoleteAttribute("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)] @@ -425,10 +428,12 @@ protected NetworkInterface() { } public virtual string Id { get { throw null; } } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static int IPv6LoopbackInterfaceIndex { get { throw null; } } public virtual bool IsReceiveOnly { get { throw null; } } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static int LoopbackInterfaceIndex { get { throw null; } } public virtual string Name { get { throw null; } } public virtual System.Net.NetworkInformation.NetworkInterfaceType NetworkInterfaceType { get { throw null; } } @@ -437,6 +442,7 @@ protected NetworkInterface() { } public virtual bool SupportsMulticast { get { throw null; } } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static System.Net.NetworkInformation.NetworkInterface[] GetAllNetworkInterfaces() { throw null; } public virtual System.Net.NetworkInformation.IPInterfaceProperties GetIPProperties() { throw null; } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("android")] @@ -445,6 +451,7 @@ protected NetworkInterface() { } public virtual System.Net.NetworkInformation.IPv4InterfaceStatistics GetIPv4Statistics() { throw null; } [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("illumos")] [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("solaris")] + [System.Runtime.Versioning.UnsupportedOSPlatformAttribute("haiku")] public static bool GetIsNetworkAvailable() { throw null; } public virtual System.Net.NetworkInformation.PhysicalAddress GetPhysicalAddress() { throw null; } public virtual bool Supports(System.Net.NetworkInformation.NetworkInterfaceComponent networkInterfaceComponent) { throw null; } diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalProperties.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalProperties.cs index 1a78c1dd3e8b6b..55f6aebb1a741c 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalProperties.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalProperties.cs @@ -14,6 +14,7 @@ public abstract class IPGlobalProperties { [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static IPGlobalProperties GetIPGlobalProperties() { return IPGlobalPropertiesPal.GetIPGlobalProperties(); diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalPropertiesPal.UnknownUnix.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalPropertiesPal.UnknownUnix.cs index 4ac2f044409628..e2f8aa3428258d 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalPropertiesPal.UnknownUnix.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/IPGlobalPropertiesPal.UnknownUnix.cs @@ -9,6 +9,7 @@ internal static class IPGlobalPropertiesPal { [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static IPGlobalProperties GetIPGlobalProperties() { throw new PlatformNotSupportedException(); diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Android.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Android.cs index e6cb7995803147..3783ee9bdbcf0d 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Android.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Android.cs @@ -20,6 +20,7 @@ public partial class NetworkChange [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAddressChangedEventHandler? NetworkAddressChanged { add @@ -63,6 +64,7 @@ public static event NetworkAddressChangedEventHandler? NetworkAddressChanged [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged { add diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.OSX.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.OSX.cs index 94f9d435aecbee..6d303bf6664710 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.OSX.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.OSX.cs @@ -40,6 +40,7 @@ public partial class NetworkChange [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAddressChangedEventHandler? NetworkAddressChanged { add @@ -79,6 +80,7 @@ public static event NetworkAddressChangedEventHandler? NetworkAddressChanged [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged { add diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Unix.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Unix.cs index 38913da8292faa..9acabb871258e5 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Unix.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Unix.cs @@ -46,6 +46,7 @@ private static Socket? Socket [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAddressChangedEventHandler? NetworkAddressChanged { add @@ -88,6 +89,7 @@ public static event NetworkAddressChangedEventHandler? NetworkAddressChanged [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged { add diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.UnknownUnix.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.UnknownUnix.cs index bc0df09d18ac7c..0e7907d1d6b116 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.UnknownUnix.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.UnknownUnix.cs @@ -18,6 +18,7 @@ public NetworkChange() [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAddressChangedEventHandler? NetworkAddressChanged { add { throw new PlatformNotSupportedException(); } @@ -26,6 +27,7 @@ public static event NetworkAddressChangedEventHandler? NetworkAddressChanged [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged { add { throw new PlatformNotSupportedException(); } diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Windows.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Windows.cs index 8499eac6b16607..134d94d97bf705 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Windows.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkAddressChange.Windows.cs @@ -15,6 +15,7 @@ public partial class NetworkChange [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAvailabilityChangedEventHandler? NetworkAvailabilityChanged { add @@ -29,6 +30,7 @@ public static event NetworkAvailabilityChangedEventHandler? NetworkAvailabilityC [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static event NetworkAddressChangedEventHandler? NetworkAddressChanged { add diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterface.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterface.cs index 24f02186c3dc3a..c36de6a05e5613 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterface.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterface.cs @@ -13,6 +13,7 @@ public abstract class NetworkInterface /// An array of all network interfaces on the local computer. [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static NetworkInterface[] GetAllNetworkInterfaces() { return NetworkInterfacePal.GetAllNetworkInterfaces(); @@ -20,6 +21,7 @@ public static NetworkInterface[] GetAllNetworkInterfaces() [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static bool GetIsNetworkAvailable() { return NetworkInterfacePal.GetIsNetworkAvailable(); @@ -27,6 +29,7 @@ public static bool GetIsNetworkAvailable() [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static int IPv6LoopbackInterfaceIndex { get @@ -37,6 +40,7 @@ public static int IPv6LoopbackInterfaceIndex [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static int LoopbackInterfaceIndex { get diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterfacePal.UnknownUnix.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterfacePal.UnknownUnix.cs index 647662c539f7b2..2873569b299a94 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterfacePal.UnknownUnix.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/NetworkInterfacePal.UnknownUnix.cs @@ -10,6 +10,7 @@ internal static class NetworkInterfacePal /// Returns objects that describe the network interfaces on the local computer. [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static NetworkInterface[] GetAllNetworkInterfaces() { throw new PlatformNotSupportedException(); @@ -17,6 +18,7 @@ public static NetworkInterface[] GetAllNetworkInterfaces() [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static bool GetIsNetworkAvailable() { throw new PlatformNotSupportedException(); @@ -24,6 +26,7 @@ public static bool GetIsNetworkAvailable() [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static int IPv6LoopbackInterfaceIndex { get { throw new PlatformNotSupportedException(); } @@ -31,6 +34,7 @@ public static int IPv6LoopbackInterfaceIndex [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public static int LoopbackInterfaceIndex { get { throw new PlatformNotSupportedException(); } diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixIPGlobalProperties.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixIPGlobalProperties.cs index 2ab82486ec99ab..39365b0e196a40 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixIPGlobalProperties.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixIPGlobalProperties.cs @@ -20,6 +20,7 @@ internal abstract class UnixIPGlobalProperties : IPGlobalProperties [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override string DhcpScopeName { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } public override string DomainName { get { return HostInformation.DomainName; } } @@ -34,6 +35,7 @@ internal abstract class UnixIPGlobalProperties : IPGlobalProperties [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override bool IsWinsProxy { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } public override NetBiosNodeType NodeType { get { return NetBiosNodeType.Unknown; } } diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixMulticastIPAddressInformation.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixMulticastIPAddressInformation.cs index f28ec4b4401dd0..911b19fee9e193 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixMulticastIPAddressInformation.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixMulticastIPAddressInformation.cs @@ -23,6 +23,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override bool IsDnsEligible { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -32,6 +33,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override bool IsTransient { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -41,6 +43,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override long AddressPreferredLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -50,6 +53,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override long AddressValidLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -59,6 +63,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override long DhcpLeaseLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -68,6 +73,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override DuplicateAddressDetectionState DuplicateAddressDetectionState { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -77,6 +83,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override PrefixOrigin PrefixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } [UnsupportedOSPlatform("linux")] @@ -86,6 +93,7 @@ public UnixMulticastIPAddressInformation(IPAddress address) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override SuffixOrigin SuffixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } } } diff --git a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixUnicastIPAddressInformation.cs b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixUnicastIPAddressInformation.cs index c3a46ac1fb9d54..1e00900dee2c5c 100644 --- a/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixUnicastIPAddressInformation.cs +++ b/src/libraries/System.Net.NetworkInformation/src/System/Net/NetworkInformation/UnixUnicastIPAddressInformation.cs @@ -28,6 +28,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override bool IsDnsEligible { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// Gets a bool value that indicates whether the Internet Protocol (IP) address is transient. @@ -38,6 +39,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override bool IsTransient { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// [To be supplied.] @@ -48,6 +50,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override long AddressPreferredLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// [To be supplied.] @@ -58,6 +61,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override long AddressValidLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// Specifies the amount of time remaining on the Dynamic Host Configuration Protocol (DHCP) lease for this IP address. @@ -68,6 +72,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override long DhcpLeaseLifetime { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// Gets a value that indicates the state of the duplicate address detection algorithm. @@ -78,6 +83,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override DuplicateAddressDetectionState DuplicateAddressDetectionState { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// Gets a value that identifies the source of a unicast IP address prefix. @@ -88,6 +94,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override PrefixOrigin PrefixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } /// Gets a value that identifies the source of a unicast IP address suffix. @@ -98,6 +105,7 @@ public UnixUnicastIPAddressInformation(IPAddress address, int prefixLength) [UnsupportedOSPlatform("freebsd")] [UnsupportedOSPlatform("illumos")] [UnsupportedOSPlatform("solaris")] + [UnsupportedOSPlatform("haiku")] public override SuffixOrigin SuffixOrigin { get { throw new PlatformNotSupportedException(SR.net_InformationUnavailableOnPlatform); } } public override IPAddress IPv4Mask