summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_socket.h
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2009-05-07 09:39:20 +0000
committerdchagin <dchagin@FreeBSD.org>2009-05-07 09:39:20 +0000
commit010f4da5f86e181aee65d68d0e2c7ae96f3cc7ef (patch)
tree82b0d56bc6e82df7b55b5e78b1f0d0d762bd01ec /sys/compat/linux/linux_socket.h
parent3ce50871ce9326b57e479bd87070622c222b9519 (diff)
downloadFreeBSD-src-010f4da5f86e181aee65d68d0e2c7ae96f3cc7ef.zip
FreeBSD-src-010f4da5f86e181aee65d68d0e2c7ae96f3cc7ef.tar.gz
To avoid excessive code duplication move MI definitions to the MI
header file. As it is defined in Linux. Approved by: kib (mentor) MFC after: 1 month
Diffstat (limited to 'sys/compat/linux/linux_socket.h')
-rw-r--r--sys/compat/linux/linux_socket.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_socket.h b/sys/compat/linux/linux_socket.h
index 5a5d3f5..9257a7d 100644
--- a/sys/compat/linux/linux_socket.h
+++ b/sys/compat/linux/linux_socket.h
@@ -80,4 +80,14 @@
#define CMSG_HDRSZ CMSG_LEN(0)
#define L_CMSG_HDRSZ LINUX_CMSG_LEN(0)
+/* Supported address families */
+
+#define LINUX_AF_UNSPEC 0
+#define LINUX_AF_UNIX 1
+#define LINUX_AF_INET 2
+#define LINUX_AF_AX25 3
+#define LINUX_AF_IPX 4
+#define LINUX_AF_APPLETALK 5
+#define LINUX_AF_INET6 10
+
#endif /* _LINUX_SOCKET_H_ */
OpenPOWER on IntegriCloud