diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-11 09:14:21 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-01-11 09:14:21 +0000 |
commit | 4c49fbb6b5aeae1767d68e2cc62e2734c87ab766 (patch) | |
tree | 4a4fb3e29b622fd3bb8fb07163f230f5deea2f0c /include/netinet/tcp.h | |
parent | e4f07e7d1b9c6b2eab58fdebd3b9031f361d59aa (diff) |
cull useless headers and import a few updates from glibc
Diffstat (limited to 'include/netinet/tcp.h')
-rw-r--r-- | include/netinet/tcp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index 87099ec14..06e8414b5 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -49,9 +49,12 @@ #define TCP_WINDOW_CLAMP 10 /* Bound advertised window */ #define TCP_INFO 11 /* Information about this connection. */ #define TCP_QUICKACK 12 /* Bock/reenable quick ACKs. */ +#define TCP_CONGESTION 13 /* Congestion control algorithm. */ +#define TCP_MD5SIG 14 /* TCP MD5 Signature (RFC2385) */ #ifdef __USE_MISC # include <sys/types.h> +# include <sys/socket.h> # ifdef __FAVOR_BSD typedef u_int32_t tcp_seq; @@ -218,6 +221,24 @@ struct tcp_info u_int32_t tcpi_snd_cwnd; u_int32_t tcpi_advmss; u_int32_t tcpi_reordering; + + u_int32_t tcpi_rcv_rtt; + u_int32_t tcpi_rcv_space; + + u_int32_t tcpi_total_retrans; +}; + + +/* For TCP_MD5SIG socket option. */ +#define TCP_MD5SIG_MAXKEYLEN 80 + +struct tcp_md5sig +{ + struct sockaddr_storage tcpm_addr; /* Address associated. */ + u_int16_t __tcpm_pad1; /* Zero. */ + u_int16_t tcpm_keylen; /* Key length. */ + u_int32_t __tcpm_pad2; /* Zero. */ + u_int8_t tcpm_key[TCP_MD5SIG_MAXKEYLEN]; /* Key (binary). */ }; #endif /* Misc. */ |