From 8bcfb51f912bc09f5afb185a984b3485be469839 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sun, 1 May 2005 10:13:08 +0000 Subject: r6553: Added Linux per-socket TCP settings patch from "Ed Boraas" . Jeremy. (This used to be commit 96f0e2d3fc68010f9e956802710ce0bdb8d7c664) --- source3/lib/util_sock.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3') 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 -- cgit