summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-04-15 15:38:15 +0000
committerdchagin <dchagin@FreeBSD.org>2017-04-15 15:38:15 +0000
commit3d2b6505a9d4e2cf7eca765e43f3ab5699c10830 (patch)
tree680a7c9366ec3b6634ec819b512dcfd944cbbbac /sys/amd64
parente06d0443ceaec26f9897b92956f52ee969632081 (diff)
downloadFreeBSD-src-3d2b6505a9d4e2cf7eca765e43f3ab5699c10830.zip
FreeBSD-src-3d2b6505a9d4e2cf7eca765e43f3ab5699c10830.tar.gz
MFC r315501:
To reduce code duplication move socket defines to the MI path.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/linux/linux.h44
-rw-r--r--sys/amd64/linux32/linux.h31
2 files changed, 0 insertions, 75 deletions
diff --git a/sys/amd64/linux/linux.h b/sys/amd64/linux/linux.h
index b261bf8..c56cb80 100644
--- a/sys/amd64/linux/linux.h
+++ b/sys/amd64/linux/linux.h
@@ -383,50 +383,6 @@ union l_semun {
l_uintptr_t __pad;
};
-/*
- * Socket defines
- */
-
-#define LINUX_SOL_SOCKET 1
-#define LINUX_SOL_IP 0
-#define LINUX_SOL_IPX 256
-#define LINUX_SOL_AX25 257
-#define LINUX_SOL_TCP 6
-#define LINUX_SOL_UDP 17
-
-#define LINUX_SO_DEBUG 1
-#define LINUX_SO_REUSEADDR 2
-#define LINUX_SO_TYPE 3
-#define LINUX_SO_ERROR 4
-#define LINUX_SO_DONTROUTE 5
-#define LINUX_SO_BROADCAST 6
-#define LINUX_SO_SNDBUF 7
-#define LINUX_SO_RCVBUF 8
-#define LINUX_SO_KEEPALIVE 9
-#define LINUX_SO_OOBINLINE 10
-#define LINUX_SO_NO_CHECK 11
-#define LINUX_SO_PRIORITY 12
-#define LINUX_SO_LINGER 13
-#define LINUX_SO_PASSCRED 16
-#define LINUX_SO_PEERCRED 17
-#define LINUX_SO_RCVLOWAT 18
-#define LINUX_SO_SNDLOWAT 19
-#define LINUX_SO_RCVTIMEO 20
-#define LINUX_SO_SNDTIMEO 21
-#define LINUX_SO_TIMESTAMP 29
-#define LINUX_SO_ACCEPTCONN 30
-
-#define LINUX_IP_TOS 1
-#define LINUX_IP_TTL 2
-#define LINUX_IP_HDRINCL 3
-#define LINUX_IP_OPTIONS 4
-
-#define LINUX_IP_MULTICAST_IF 32
-#define LINUX_IP_MULTICAST_TTL 33
-#define LINUX_IP_MULTICAST_LOOP 34
-#define LINUX_IP_ADD_MEMBERSHIP 35
-#define LINUX_IP_DROP_MEMBERSHIP 36
-
struct l_sockaddr {
l_ushort sa_family;
char sa_data[14];
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h
index 957a8b7..ad6d9fa 100644
--- a/sys/amd64/linux32/linux.h
+++ b/sys/amd64/linux32/linux.h
@@ -474,37 +474,6 @@ union l_semun {
l_uintptr_t __pad;
} __packed;
-/*
- * Socket defines
- */
-#define LINUX_SOL_SOCKET 1
-#define LINUX_SOL_IP 0
-#define LINUX_SOL_IPX 256
-#define LINUX_SOL_AX25 257
-#define LINUX_SOL_TCP 6
-#define LINUX_SOL_UDP 17
-
-#define LINUX_SO_DEBUG 1
-#define LINUX_SO_REUSEADDR 2
-#define LINUX_SO_TYPE 3
-#define LINUX_SO_ERROR 4
-#define LINUX_SO_DONTROUTE 5
-#define LINUX_SO_BROADCAST 6
-#define LINUX_SO_SNDBUF 7
-#define LINUX_SO_RCVBUF 8
-#define LINUX_SO_KEEPALIVE 9
-#define LINUX_SO_OOBINLINE 10
-#define LINUX_SO_NO_CHECK 11
-#define LINUX_SO_PRIORITY 12
-#define LINUX_SO_LINGER 13
-#define LINUX_SO_PEERCRED 17
-#define LINUX_SO_RCVLOWAT 18
-#define LINUX_SO_SNDLOWAT 19
-#define LINUX_SO_RCVTIMEO 20
-#define LINUX_SO_SNDTIMEO 21
-#define LINUX_SO_TIMESTAMP 29
-#define LINUX_SO_ACCEPTCONN 30
-
struct l_sockaddr {
l_ushort sa_family;
char sa_data[14];
OpenPOWER on IntegriCloud