From ee939bbf7e0d623dc62b36a44710b1e50609a554 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Sun, 16 Dec 2007 03:30:07 +0000 Subject: [PATCH] Add socket option for setting and retrieving the congestion control algorithm. The name used is to allow compatibility with Linux. --- sys/netinet/tcp.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/netinet/tcp.h b/sys/netinet/tcp.h index ee4fd1c2fe38..e0133a752078 100644 --- a/sys/netinet/tcp.h +++ b/sys/netinet/tcp.h @@ -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