summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2011-11-18 13:40:17 +0100
committerKarolin Seeger <kseeger@samba.org>2012-01-23 21:28:24 +0100
commitba6059891f876288fc53c6be70f6e479102faad8 (patch)
tree9aebdf11476b14d5350455b8f58beb796c4174c1
parent5d9035608c618523542ec3e5e29fc8469dd0d196 (diff)
downloadsamba-ba6059891f876288fc53c6be70f6e479102faad8.tar.gz
s3: allow to set TCP_NODELAYACK socket option on AIX (#8616)
this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux this is a backport of 383a918322c1edd1977fdbce19e52e8c8e6ffac1 (cherry picked from commit d8091581f7e55a8147c9ec5e8a30481596093d27)
-rw-r--r--source3/lib/util_sock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 6ba1ab9758c..40e6e048d79 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -137,6 +137,9 @@ static const smb_socket_option socket_options[] = {
#ifdef TCP_QUICKACK
{"TCP_QUICKACK", IPPROTO_TCP, TCP_QUICKACK, 0, OPT_BOOL},
#endif
+#ifdef TCP_NODELAYACK
+ {"TCP_NODELAYACK", IPPROTO_TCP, TCP_NODELAYACK, 0, OPT_BOOL},
+#endif
#ifdef TCP_KEEPALIVE_THRESHOLD
{"TCP_KEEPALIVE_THRESHOLD", IPPROTO_TCP, TCP_KEEPALIVE_THRESHOLD, 0, OPT_INT},
#endif