-#define SIOCGIFAFLAG_IN6 _IOWR('i', 73, struct in6_ifreq)
-#define SIOCGDRLST_IN6 _IOWR('i', 74, struct in6_drlist)
-#ifdef XNU_KERNEL_PRIVATE
-#define SIOCGDRLST_IN6_32 _IOWR('i', 74, struct in6_drlist_32)
-#define SIOCGDRLST_IN6_64 _IOWR('i', 74, struct in6_drlist_64)
-#endif /* XNU_KERNEL_PRIVATE */
-#define SIOCGPRLST_IN6 _IOWR('i', 75, struct in6_prlist)
-#ifdef XNU_KERNEL_PRIVATE
-#define SIOCGPRLST_IN6_32 _IOWR('i', 75, struct in6_prlist_32)
-#define SIOCGPRLST_IN6_64 _IOWR('i', 75, struct in6_prlist_64)
-#endif /* XNU_KERNEL_PRIVATE */
-#define OSIOCGIFINFO_IN6 _IOWR('i', 108, struct in6_ondireq)
-#define SIOCGIFINFO_IN6 _IOWR('i', 76, struct in6_ondireq)
-#define SIOCSNDFLUSH_IN6 _IOWR('i', 77, struct in6_ifreq)
-#define SIOCGNBRINFO_IN6 _IOWR('i', 78, struct in6_nbrinfo)
-#ifdef XNU_KERNEL_PRIVATE
-#define SIOCGNBRINFO_IN6_32 _IOWR('i', 78, struct in6_nbrinfo_32)
-#define SIOCGNBRINFO_IN6_64 _IOWR('i', 78, struct in6_nbrinfo_64)
-#endif /* XNU_KERNEL_PRIVATE */
-#define SIOCSPFXFLUSH_IN6 _IOWR('i', 79, struct in6_ifreq)
-#define SIOCSRTRFLUSH_IN6 _IOWR('i', 80, struct in6_ifreq)
-
-#define SIOCGIFALIFETIME_IN6 _IOWR('i', 81, struct in6_ifreq)
-#define SIOCSIFALIFETIME_IN6 _IOWR('i', 82, struct in6_ifreq)
-#define SIOCGIFSTAT_IN6 _IOWR('i', 83, struct in6_ifreq)
-#define SIOCGIFSTAT_ICMP6 _IOWR('i', 84, struct in6_ifreq)
-
-#define SIOCSDEFIFACE_IN6 _IOWR('i', 85, struct in6_ndifreq)
-#define SIOCGDEFIFACE_IN6 _IOWR('i', 86, struct in6_ndifreq)
-#ifdef XNU_KERNEL_PRIVATE
-#define SIOCSDEFIFACE_IN6_32 _IOWR('i', 85, struct in6_ndifreq_32)
-#define SIOCSDEFIFACE_IN6_64 _IOWR('i', 85, struct in6_ndifreq_64)
-#define SIOCGDEFIFACE_IN6_32 _IOWR('i', 86, struct in6_ndifreq_32)
-#define SIOCGDEFIFACE_IN6_64 _IOWR('i', 86, struct in6_ndifreq_64)
-#endif /* XNU_KERNEL_PRIVATE */
-
-#define SIOCSIFINFO_FLAGS _IOWR('i', 87, struct in6_ndireq) /* XXX */
-
-#define SIOCSSCOPE6 _IOW('i', 88, struct in6_ifreq)
-#define SIOCGSCOPE6 _IOWR('i', 89, struct in6_ifreq)
-#define SIOCGSCOPE6DEF _IOWR('i', 90, struct in6_ifreq)
-
-#define SIOCSIFPREFIX_IN6 _IOW('i', 100, struct in6_prefixreq) /* set */
-#define SIOCGIFPREFIX_IN6 _IOWR('i', 101, struct in6_prefixreq) /* get */
-#define SIOCDIFPREFIX_IN6 _IOW('i', 102, struct in6_prefixreq) /* del */
-#define SIOCAIFPREFIX_IN6 _IOW('i', 103, struct in6_rrenumreq) /* add */
-#define SIOCCIFPREFIX_IN6 _IOW('i', 104, \
- struct in6_rrenumreq) /* change */
-#define SIOCSGIFPREFIX_IN6 _IOW('i', 105, \
- struct in6_rrenumreq) /* set global */
-
-#define SIOCGETSGCNT_IN6 _IOWR('u', 28, \
- struct sioc_sg_req6) /* get s,g pkt cnt */
-#define SIOCGETMIFCNT_IN6 _IOWR('u', 107, \
- struct sioc_mif_req6) /* get pkt cnt per if */
-#ifdef XNU_KERNEL_PRIVATE
-#define SIOCGETMIFCNT_IN6_32 _IOWR('u', 107, struct sioc_mif_req6_32)
-#define SIOCGETMIFCNT_IN6_64 _IOWR('u', 107, struct sioc_mif_req6_64)
-#endif /* XNU_KERNEL_PRIVATE */
-
-#define SIOCAADDRCTL_POLICY _IOW('u', 108, struct in6_addrpolicy)
-#define SIOCDADDRCTL_POLICY _IOW('u', 109, struct in6_addrpolicy)
+#define SIOCGIFAFLAG_IN6 _IOWR('i', 73, struct in6_ifreq)
+
+#define SIOCGDRLST_IN6 _IOWR('i', 74, struct in6_drlist)
+#ifdef BSD_KERNEL_PRIVATE
+#define SIOCGDRLST_IN6_32 _IOWR('i', 74, struct in6_drlist_32)
+#define SIOCGDRLST_IN6_64 _IOWR('i', 74, struct in6_drlist_64)
+#endif /* BSD_KERNEL_PRIVATE */
+
+#define SIOCGPRLST_IN6 _IOWR('i', 75, struct in6_prlist)
+#ifdef BSD_KERNEL_PRIVATE
+#define SIOCGPRLST_IN6_32 _IOWR('i', 75, struct in6_prlist_32)
+#define SIOCGPRLST_IN6_64 _IOWR('i', 75, struct in6_prlist_64)
+#endif /* BSD_KERNEL_PRIVATE */
+
+#define OSIOCGIFINFO_IN6 _IOWR('i', 108, struct in6_ondireq)
+#define SIOCGIFINFO_IN6 _IOWR('i', 76, struct in6_ondireq)
+#define SIOCSNDFLUSH_IN6 _IOWR('i', 77, struct in6_ifreq)
+
+#define SIOCGNBRINFO_IN6 _IOWR('i', 78, struct in6_nbrinfo)
+#ifdef BSD_KERNEL_PRIVATE
+#define SIOCGNBRINFO_IN6_32 _IOWR('i', 78, struct in6_nbrinfo_32)
+#define SIOCGNBRINFO_IN6_64 _IOWR('i', 78, struct in6_nbrinfo_64)
+#endif /* BSD_KERNEL_PRIVATE */
+
+#define SIOCSPFXFLUSH_IN6 _IOWR('i', 79, struct in6_ifreq)
+#define SIOCSRTRFLUSH_IN6 _IOWR('i', 80, struct in6_ifreq)
+
+#define SIOCGIFALIFETIME_IN6 _IOWR('i', 81, struct in6_ifreq)
+#define SIOCSIFALIFETIME_IN6 _IOWR('i', 82, struct in6_ifreq)
+#define SIOCGIFSTAT_IN6 _IOWR('i', 83, struct in6_ifreq)
+#define SIOCGIFSTAT_ICMP6 _IOWR('i', 84, struct in6_ifreq)
+
+#define SIOCSDEFIFACE_IN6 _IOWR('i', 85, struct in6_ndifreq)
+#define SIOCGDEFIFACE_IN6 _IOWR('i', 86, struct in6_ndifreq)
+#ifdef BSD_KERNEL_PRIVATE
+#define SIOCSDEFIFACE_IN6_32 _IOWR('i', 85, struct in6_ndifreq_32)
+#define SIOCSDEFIFACE_IN6_64 _IOWR('i', 85, struct in6_ndifreq_64)
+#define SIOCGDEFIFACE_IN6_32 _IOWR('i', 86, struct in6_ndifreq_32)
+#define SIOCGDEFIFACE_IN6_64 _IOWR('i', 86, struct in6_ndifreq_64)
+#endif /* BSD_KERNEL_PRIVATE */
+
+#define SIOCSIFINFO_FLAGS _IOWR('i', 87, struct in6_ndireq) /* XXX */
+
+/* N.B.: These 3 ioctls are deprecated and won't work */
+#define SIOCSSCOPE6 _IOW('i', 88, struct in6_ifreq)
+#define SIOCGSCOPE6 _IOWR('i', 89, struct in6_ifreq)
+#define SIOCGSCOPE6DEF _IOWR('i', 90, struct in6_ifreq)
+
+#define SIOCSIFPREFIX_IN6 _IOW('i', 100, struct in6_prefixreq) /* set */
+#define SIOCGIFPREFIX_IN6 _IOWR('i', 101, struct in6_prefixreq) /* get */
+#define SIOCDIFPREFIX_IN6 _IOW('i', 102, struct in6_prefixreq) /* del */
+#define SIOCAIFPREFIX_IN6 _IOW('i', 103, struct in6_rrenumreq) /* add */
+
+/* change */
+#define SIOCCIFPREFIX_IN6 _IOW('i', 104, struct in6_rrenumreq)
+
+/* set global */
+#define SIOCSGIFPREFIX_IN6 _IOW('i', 105, struct in6_rrenumreq)
+
+/*
+ * multicast routing, get s/g pkt cnt, pkt cnt per interface.
+ */
+#define SIOCGETSGCNT_IN6 _IOWR('u', 28, struct sioc_sg_req6)
+#define SIOCGETMIFCNT_IN6 _IOWR('u', 107, struct sioc_mif_req6)
+#ifdef BSD_KERNEL_PRIVATE
+#define SIOCGETMIFCNT_IN6_32 _IOWR('u', 107, struct sioc_mif_req6_32)
+#define SIOCGETMIFCNT_IN6_64 _IOWR('u', 107, struct sioc_mif_req6_64)
+#endif /* BSD_KERNEL_PRIVATE */
+
+#define SIOCAADDRCTL_POLICY _IOW('u', 108, struct in6_addrpolicy)
+#define SIOCDADDRCTL_POLICY _IOW('u', 109, struct in6_addrpolicy)