summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-05-01 10:13:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:45 -0500
commit8bcfb51f912bc09f5afb185a984b3485be469839 (patch)
treedb8fac5b5ff434ea98108615705e388ca449b5c2 /source3
parent0483dd60ded1239d8a3ab46598e164416f7668b8 (diff)
downloadsamba-8bcfb51f912bc09f5afb185a984b3485be469839.tar.gz
samba-8bcfb51f912bc09f5afb185a984b3485be469839.tar.bz2
samba-8bcfb51f912bc09f5afb185a984b3485be469839.zip
r6553: Added Linux per-socket TCP settings patch from "Ed Boraas" <ed.boraas@concordia.ab.ca>.
Jeremy. (This used to be commit 96f0e2d3fc68010f9e956802710ce0bdb8d7c664)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_sock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 58bc5ed6fe..4222c3c5ef 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -98,6 +98,15 @@ static const smb_socket_option socket_options[] = {
#ifdef TCP_NODELAY
{"TCP_NODELAY", IPPROTO_TCP, TCP_NODELAY, 0, OPT_BOOL},
#endif
+#ifdef TCP_KEEPCNT
+ {"TCP_KEEPCNT", IPPROTO_TCP, TCP_KEEPCNT, 0, OPT_INT},
+#endif
+#ifdef TCP_KEEPIDLE
+ {"TCP_KEEPIDLE", IPPROTO_TCP, TCP_KEEPIDLE, 0, OPT_INT},
+#endif
+#ifdef TCP_KEEPINTVL
+ {"TCP_KEEPINTVL", IPPROTO_TCP, TCP_KEEPINTVL, 0, OPT_INT},
+#endif
#ifdef IPTOS_LOWDELAY
{"IPTOS_LOWDELAY", IPPROTO_IP, IP_TOS, IPTOS_LOWDELAY, OPT_ON},
#endif