github.com/GeniusesGroup/libgo@v0.0.0-20220929090155-5ff932cb408e/tcp/ecn.go (about)

     1  /* For license and copyright information please see the LEGAL file in the code repository */
     2  
     3  package tcp
     4  
     5  // ECN is RFC 3168 Explicit Congestion Notification
     6  type ECN uint8
     7  
     8  const (
     9  	ExplicitCongestionNotification_Unset ECN = iota
    10  
    11  	// Disable ECN Neither initiate nor accept ECN.
    12  	// This was the default up to and including Linux
    13  	// 2.6.30.
    14  	ExplicitCongestionNotification_Disabled
    15  	// Enable ECN when requested by incoming connections
    16  	// and also request ECN on outgoing connection
    17  	// attempts.
    18  	ExplicitCongestionNotification_Enabled
    19  	// Enable ECN when requested by incoming connections,
    20  	// but do not request ECN on outgoing connections.
    21  	// This value is supported, and is the default, since
    22  	// Linux 2.6.31.
    23  	ExplicitCongestionNotification_EnabledOnRequested
    24  )