summaryrefslogtreecommitdiff
path: root/include/netinet
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2017-09-12 22:14:24 +0000
committerRich Felker <dalias@aerifal.cx>2017-11-05 18:41:26 -0500
commit6651ef1f060738ee1f50cac1fe6d8ce64c359022 (patch)
tree8a428351141663398394e6ac24adf1c111d891d9 /include/netinet
parent14ced22830ef6cbf8e2526d3131c2b443c3f57dd (diff)
downloadmusl-6651ef1f060738ee1f50cac1fe6d8ce64c359022.tar.gz
musl-6651ef1f060738ee1f50cac1fe6d8ce64c359022.tar.bz2
musl-6651ef1f060738ee1f50cac1fe6d8ce64c359022.tar.xz
musl-6651ef1f060738ee1f50cac1fe6d8ce64c359022.zip
add new tcp.h socket options from linux v4.13
TCP_ULP is new in linux commit 734942cc4ea6478eed125af258da1bdbb4afe578 TCP_MD5SIG_EXT is new in 8917a777be3ba566377be05117f71b93a5fd909d
Diffstat (limited to 'include/netinet')
-rw-r--r--include/netinet/tcp.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h
index 652418be..4d20936a 100644
--- a/include/netinet/tcp.h
+++ b/include/netinet/tcp.h
@@ -32,6 +32,8 @@
#define TCP_SAVED_SYN 28
#define TCP_REPAIR_WINDOW 29
#define TCP_FASTOPEN_CONNECT 30
+#define TCP_ULP 31
+#define TCP_MD5SIG_EXT 32
#define TCP_ESTABLISHED 1
#define TCP_SYN_SENT 2
@@ -207,11 +209,14 @@ struct tcp_info {
#define TCP_MD5SIG_MAXKEYLEN 80
+#define TCP_MD5SIG_FLAG_PREFIX 1
+
struct tcp_md5sig {
struct sockaddr_storage tcpm_addr;
- uint16_t __tcpm_pad1;
+ uint8_t tcpm_flags;
+ uint8_t tcpm_prefixlen;
uint16_t tcpm_keylen;
- uint32_t __tcpm_pad2;
+ uint32_t __tcpm_pad;
uint8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN];
};