mirror of
https://github.com/fluencelabs/musl
synced 2025-04-25 07:12:15 +00:00
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
This commit is contained in:
parent
14ced22830
commit
6651ef1f06
@ -32,6 +32,8 @@
|
|||||||
#define TCP_SAVED_SYN 28
|
#define TCP_SAVED_SYN 28
|
||||||
#define TCP_REPAIR_WINDOW 29
|
#define TCP_REPAIR_WINDOW 29
|
||||||
#define TCP_FASTOPEN_CONNECT 30
|
#define TCP_FASTOPEN_CONNECT 30
|
||||||
|
#define TCP_ULP 31
|
||||||
|
#define TCP_MD5SIG_EXT 32
|
||||||
|
|
||||||
#define TCP_ESTABLISHED 1
|
#define TCP_ESTABLISHED 1
|
||||||
#define TCP_SYN_SENT 2
|
#define TCP_SYN_SENT 2
|
||||||
@ -207,11 +209,14 @@ struct tcp_info {
|
|||||||
|
|
||||||
#define TCP_MD5SIG_MAXKEYLEN 80
|
#define TCP_MD5SIG_MAXKEYLEN 80
|
||||||
|
|
||||||
|
#define TCP_MD5SIG_FLAG_PREFIX 1
|
||||||
|
|
||||||
struct tcp_md5sig {
|
struct tcp_md5sig {
|
||||||
struct sockaddr_storage tcpm_addr;
|
struct sockaddr_storage tcpm_addr;
|
||||||
uint16_t __tcpm_pad1;
|
uint8_t tcpm_flags;
|
||||||
|
uint8_t tcpm_prefixlen;
|
||||||
uint16_t tcpm_keylen;
|
uint16_t tcpm_keylen;
|
||||||
uint32_t __tcpm_pad2;
|
uint32_t __tcpm_pad;
|
||||||
uint8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN];
|
uint8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user