summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-02-05 16:53:02 +0000
committerglebius <glebius@FreeBSD.org>2012-02-05 16:53:02 +0000
commit4326beb059fb2e0786289b19b1bf9a8b7a2b824b (patch)
treedcb36bc519c1f170cc8c8a32ba0dd1c8c7acfc78 /sys/netinet/tcp_var.h
parent96baefc0cb3bd4bac8a5c692c335abaf29650d71 (diff)
downloadFreeBSD-src-4326beb059fb2e0786289b19b1bf9a8b7a2b824b.zip
FreeBSD-src-4326beb059fb2e0786289b19b1bf9a8b7a2b824b.tar.gz
Add new socket options: TCP_KEEPINIT, TCP_KEEPIDLE, TCP_KEEPINTVL and
TCP_KEEPCNT, that allow to control initial timeout, idle time, idle re-send interval and idle send count on a per-socket basis. Reviewed by: andre, bz, lstewart
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index bc64ac2..b602c27 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -203,7 +203,12 @@ struct tcpcb {
struct cc_var *ccv; /* congestion control specific vars */
struct osd *osd; /* storage for Khelp module data */
- uint32_t t_ispare[12]; /* 4 keep timers, 5 UTO, 3 TBD */
+ u_int t_keepinit; /* time to establish connection */
+ u_int t_keepidle; /* time before keepalive probes begin */
+ u_int t_keepintvl; /* interval between keepalives */
+ u_int t_keepcnt; /* number of keepalives before close */
+
+ uint32_t t_ispare[8]; /* 5 UTO, 3 TBD */
void *t_pspare2[4]; /* 4 TBD */
uint64_t _pad[6]; /* 6 TBD (1-2 CC/RTT?) */
};
OpenPOWER on IntegriCloud