]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r300240
authortruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Jun 2016 19:00:47 +0000 (19:00 +0000)
committertruckman <truckman@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 20 Jun 2016 19:00:47 +0000 (19:00 +0000)
commit8287f6c02dbc4d4985b3488ebe1099169bc28667
tree59a69a97188c94a42154ae629061206aab4113a2
parent6f5168db8da73a7fe95aa0b42121ac2fe47ae4c6
MFC r300240

Change net.inet.tcp.ecn.enable sysctl mib from a binary off/on
control to a three way setting.
  0 - Totally disable ECN. (no change)
  1 - Enable ECN if incoming connections request it.  Outgoing
      connections will request ECN.  (no change from present != 0 setting)
  2 - Enable ECN if incoming connections request it.  Outgoing
      conections will not request ECN.

Change the default value of net.inet.tcp.ecn.enable from 0 to 2.

Linux version 2.4.20 and newer, Solaris, and Mac OS X 10.5 and newer have
similar capabilities.  The actual values above match Linux, and the default
matches the current Linux default.

Reviewed by: eadler
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D6386

git-svn-id: svn://svn.freebsd.org/base/stable/10@302032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/tcp_input.c
sys/netinet/tcp_output.c