Add socket option for setting and retrieving the congestion control algorithm.

The name used is to allow compatibility with Linux.
This commit is contained in:
Kip Macy 2007-12-16 03:30:07 +00:00
parent bd71bd379c
commit ee939bbf7e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174636

View File

@ -147,6 +147,9 @@ struct tcphdr {
#define TCP_NOOPT 0x08 /* don't use TCP options */
#define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */
#define TCP_INFO 0x20 /* retrieve tcp_info structure */
#define TCP_CONGESTION 0x40 /* get/set congestion control algorithm */
#define TCP_CA_NAME_MAX 16 /* max congestion control name length */
#define TCPI_OPT_TIMESTAMPS 0x01
#define TCPI_OPT_SACK 0x02