diff options
author | William Allen Simpson <william.allen.simpson@gmail.com> | 2009-11-10 12:51:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-14 07:38:48 +0300 |
commit | bee7ca9ec03a26676ea2b1c28dc4039348eff3e1 (patch) | |
tree | 652832d73252d7c9ede928a4242763f570070b0e /include/linux/tcp.h | |
parent | cbbef5e183079455763fc470ccf69008f92ab4b6 (diff) | |
download | linux-bee7ca9ec03a26676ea2b1c28dc4039348eff3e1.tar.xz |
net: TCP_MSS_DEFAULT, TCP_MSS_DESIRED
Define two symbols needed in both kernel and user space.
Remove old (somewhat incorrect) kernel variant that wasn't used in
most cases. Default should apply to both RMSS and SMSS (RFC2581).
Replace numeric constants with defined symbols.
Stand-alone patch, originally developed for TCPCT.
Signed-off-by: William.Allen.Simpson@gmail.com
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tcp.h')
-rw-r--r-- | include/linux/tcp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index eeecb8547a2a..32d7d77b4a01 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -81,6 +81,12 @@ enum { TCP_DATA_OFFSET = __cpu_to_be32(0xF0000000) }; +/* + * TCP general constants + */ +#define TCP_MSS_DEFAULT 536U /* IPv4 (RFC1122, RFC2581) */ +#define TCP_MSS_DESIRED 1220U /* IPv6 (tunneled), EDNS0 (RFC3226) */ + /* TCP socket options */ #define TCP_NODELAY 1 /* Turn off Nagle's algorithm. */ #define TCP_MAXSEG 2 /* Limit MSS */ |