From 96f0e2d3fc68010f9e956802710ce0bdb8d7c664 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 1 May 2005 10:13:08 +0000 Subject: [PATCH] r6553: Added Linux per-socket TCP settings patch from "Ed Boraas" . Jeremy. --- source/lib/util_sock.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index 58bc5ed6fe4..4222c3c5ef5 100644 --- a/source/lib/util_sock.c +++ b/source/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