summaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorTomasz Torcz <tomek@pipebreaker.pl>2010-08-03 13:33:40 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-03 23:23:47 +0200
commitcebf8b209237db381a504c50eeba76c4c28fb677 (patch)
tree9dcbfd743121a2327ecd3f1cb7af9b703ffa8652 /src/socket.h
parent07424048b52f8b22b472bf0370a185c1eb443417 (diff)
socket: Allow selection of TCP Congestion Avoidance algorithm to socket
Hi, attached path extends socket configurables with another knob - TCP Congestion Avoidance selection. Linux implements handful of those, useful in various situations. For example, TCP Low Priority may be used by FTP service to gracefully yield bandwidth for more important TCP/IP streams. Until recently TCP_CONGESTION was Linux-specific, recently FreeBSD 8 and OpenSolaris gained compatible support.
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
index 88ebf26f87..230dd200d5 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -114,6 +114,7 @@ struct Socket {
int mark;
bool free_bind;
char *bind_to_device;
+ char *tcp_congestion;
/* Only for INET6 sockets: issue IPV6_V6ONLY sockopt */
SocketAddressBindIPv6Only bind_ipv6_only;