diff options
author | jhb <jhb@FreeBSD.org> | 2013-01-23 21:44:48 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2013-01-23 21:44:48 +0000 |
commit | af17a55dfd7a008dea74152e32f5d6c803b46bdd (patch) | |
tree | a6b7f34b7adf2be04584d7416af6c86369b5fe56 /sys/amd64 | |
parent | c6a2bfeec066725730c03ff9ad88cd84173400d7 (diff) | |
download | FreeBSD-src-af17a55dfd7a008dea74152e32f5d6c803b46bdd.zip FreeBSD-src-af17a55dfd7a008dea74152e32f5d6c803b46bdd.tar.gz |
Don't assume that all Linux TCP-level socket options are identical to
FreeBSD TCP-level socket options (only the first two are). Instead,
using a mapping function and fail unsupported options as we do for other
socket option levels.
MFC after: 2 weeks
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/linux32/linux.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 2c269d3..c18ee22 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -725,6 +725,13 @@ union l_semun { #define LINUX_IP_ADD_MEMBERSHIP 35 #define LINUX_IP_DROP_MEMBERSHIP 36 +#define LINUX_TCP_NODELAY 1 +#define LINUX_TCP_MAXSEG 2 +#define LINUX_TCP_KEEPIDLE 4 +#define LINUX_TCP_KEEPINTVL 5 +#define LINUX_TCP_KEEPCNT 6 +#define LINUX_TCP_MD5SIG 14 + struct l_sockaddr { l_ushort sa_family; char sa_data[14]; |