diff options
author | lstewart <lstewart@FreeBSD.org> | 2009-01-15 06:44:22 +0000 |
---|---|---|
committer | lstewart <lstewart@FreeBSD.org> | 2009-01-15 06:44:22 +0000 |
commit | d5deb43d0fd1476cec4cf2c44126170317fbe5fe (patch) | |
tree | ca77baf06d77eccefad07a0322a1f064ec3ea6d3 /sys/netinet/tcp_subr.c | |
parent | 8e6c149fe3004d4eb2e0a18b523e6a135b498b5f (diff) | |
download | FreeBSD-src-d5deb43d0fd1476cec4cf2c44126170317fbe5fe.zip FreeBSD-src-d5deb43d0fd1476cec4cf2c44126170317fbe5fe.tar.gz |
Add TCP Appropriate Byte Counting (RFC 3465) support to kernel.
The new behaviour is on by default, and can be disabled by setting the
net.inet.tcp.rfc3465 sysctl to 0 to obtain previous behaviour.
The patch changes struct tcpcb in sys/netinet/tcp_var.h which breaks
the ABI. Bump __FreeBSD_version to 800061 accordingly. User space tools
that rely on the size of struct tcpcb (e.g. sockstat) need to be recompiled.
Reviewed by: rpaulo, gnn
Approved by: gnn, kmacy (mentors)
Sponsored by: FreeBSD Foundation
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-rw-r--r-- | sys/netinet/tcp_subr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c index 9cb941a..53fc882 100644 --- a/sys/netinet/tcp_subr.c +++ b/sys/netinet/tcp_subr.c @@ -316,6 +316,8 @@ tcp_init(void) V_tcp_do_autorcvbuf = 1; V_tcp_autorcvbuf_inc = 16*1024; V_tcp_autorcvbuf_max = 256*1024; + V_tcp_do_rfc3465 = 1; + V_tcp_abc_l_var = 2; V_tcp_mssdflt = TCP_MSS; #ifdef INET6 |