$OpenBSD: patch-mcs_class_System_System_Net_NetworkInformation_UnixNetworkInterfaceFactory_cs,v 1.2 2020/04/06 15:11:11 robert Exp $

Index: mcs/class/System/System.Net.NetworkInformation/UnixNetworkInterfaceFactory.cs
--- mcs/class/System/System.Net.NetworkInformation/UnixNetworkInterfaceFactory.cs.orig
+++ mcs/class/System/System.Net.NetworkInformation/UnixNetworkInterfaceFactory.cs
@@ -43,10 +43,12 @@ namespace System.Net.NetworkInformation {
 			if (runningOnUnix) {
 				// XXX: OpenBSD and NetBSD too? It seems other platforms map closer to the Mac OS version than Linux,
 				// even if not exactly; it seems Linux and/or glibc are the different ones.
-				if (Platform.IsMacOS || Platform.IsOpenBSD)
+				if (Platform.IsMacOS)
 					return new MacOsNetworkInterfaceAPI ();
 				if (Platform.IsFreeBSD)
 					return new FreeBSDNetworkInterfaceAPI ();
+				if (Platform.IsOpenBSD)
+					return new OpenBSDNetworkInterfaceAPI ();
 
 				// XXX: IBM i would be better with its own API targetting Qp2getifaddrs
 				if (Platform.IsAix || Platform.IsIBMi)
