s3: allow to set TCP_NODELAYACK socket option on AIX
authorBjörn Jacke <bj@sernet.de>
Tue, 15 Nov 2011 18:12:02 +0000 (19:12 +0100)
committerBjoern Jacke <bj@sernet.de>
Tue, 15 Nov 2011 20:00:07 +0000 (21:00 +0100)
this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on
Linux

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Nov 15 21:00:07 CET 2011 on sn-devel-104

lib/util/util_net.c

index 139c9d42bcaa51c0a4938bc07b58f71bca7d8c1d..1f6ecdd87ba6eed8b8c3a35cc2788f603a686256 100644 (file)
@@ -803,6 +803,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