shithub: mc

Download patch

ref: 9647f61a308e0fd2a9074140297c7c3edf100d4d
parent: 6933c334c2f597aabeb3a48eeda8da0981939bd5
author: Ori Bernstein <[email protected]>
date: Mon Jun 16 06:47:56 EDT 2014

Actually make the OSX ifreqs match.

    <net/if.h> didn't specify what we had. This should (mostly?)
    fix it. Not yet tested.

--- a/libstd/ifreq-osx.myr
+++ b/libstd/ifreq-osx.myr
@@ -18,50 +18,60 @@
 		broadaddr	: sockaddr
 	;;
 
-	type ifreq_netmask = struct
+	type ifreq_flags = struct
 		name	: byte[Ifnamesz]
-		netmask	: sockaddr
+		flags	: int16
 	;;
 
-
-	type ifreq_hwaddr = struct
+	type ifreq_metric = struct
 		name	: byte[Ifnamesz]
-		hwaddr	: sockaddr
+		metric	: int32
 	;;
 
-	type ifreq_flags = struct
+
+	type ifreq_phys = struct
 		name	: byte[Ifnamesz]
-		flags	: int16
+		phys	: int32
 	;;
 
-	type ifreq_ifindex = struct
+	type ifreq_media = struct
 		name	: byte[Ifnamesz]
-		index	: int32
+		media	: int32
 	;;
 
-	type ifreq_metric = struct
+	type ifreq_data = struct
 		name	: byte[Ifnamesz]
-		metric	: int32
+		data	: void#
 	;;
 
-
-	type ifreq_mtu = struct
+	type ifreq_devmtu = struct
 		name	: byte[Ifnamesz]
-		mtu	: int32
+                cur	: uint32
+                min	: uint32
+                max	: uint32
 	;;
 
-	type ifreq_slave = struct
+	type ifreq_kpi = struct
 		name	: byte[Ifnamesz]
-		slave	: byte[Ifnamesz]
+                modid	: uint32
+                typeid	: uint32
+		ptr	: void#
 	;;
 
-	type ifreq_newname = struct
+	type ifreq_wakeflg = struct
 		name	: byte[Ifnamesz]
-		newname	: byte[Ifnamesz]
+		wakeflg	: uint32
 	;;
+		
+	type ifreq_routerefs = struct
+		name	: byte[Ifnamesz]
+		refs	: uint32
+	;;
 
-	type ifreq_data = struct
+	type ifreq_icaps = struct
 		name	: byte[Ifnamesz]
-		data	: void#
+		req	: uint32
+		cur	: uint32
 	;;
+
 ;;