summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_var.h
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-07-20 19:57:53 +0000
committerbluhm <bluhm@openbsd.org>2016-07-20 19:57:53 +0000
commit01461878cdf93c9dff6ec80e05aa8f172daae557 (patch)
tree6b714dfd8aafaa50efa6022838f1fcbadb62d59a /sys/netinet/tcp_var.h
parentUse more compact idiom to select architecture dependent files to compile. No (diff)
downloadwireguard-openbsd-01461878cdf93c9dff6ec80e05aa8f172daae557.tar.xz
wireguard-openbsd-01461878cdf93c9dff6ec80e05aa8f172daae557.zip
To tune the TCP SYN cache we need more information. Print the
relevant counters with netstat -s -p tcp. OK henning@
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r--sys/netinet/tcp_var.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index 22619571321..ebf72fade0c 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_var.h,v 1.114 2016/07/20 09:15:28 bluhm Exp $ */
+/* $OpenBSD: tcp_var.h,v 1.115 2016/07/20 19:57:53 bluhm Exp $ */
/* $NetBSD: tcp_var.h,v 1.17 1996/02/13 23:44:24 christos Exp $ */
/*
@@ -454,6 +454,12 @@ struct tcpstat {
u_int64_t tcps_sc_collisions; /* # of hash collisions */
u_int64_t tcps_sc_retransmitted;/* # of retransmissions */
u_int64_t tcps_sc_seedrandom; /* # of syn cache seeds with random */
+ u_int64_t tcps_sc_hash_size; /* hash buckets in current syn cache */
+ u_int64_t tcps_sc_entry_count; /* # of entries in current syn cache */
+ u_int64_t tcps_sc_entry_limit; /* limit of syn cache entries */
+ u_int64_t tcps_sc_bucket_maxlen;/* maximum # of entries in any bucket */
+ u_int64_t tcps_sc_bucket_limit; /* limit of syn cache bucket list */
+ u_int64_t tcps_sc_uses_left; /* use counter of current syn cache */
u_int64_t tcps_conndrained; /* # of connections drained */
@@ -584,6 +590,7 @@ extern int tcp_syn_cache_limit; /* max entries for compressed state engine */
extern int tcp_syn_bucket_limit;/* max entries per hash bucket */
extern int tcp_syn_use_limit; /* number of uses before reseeding hash */
extern struct syn_cache_set tcp_syn_cache[];
+extern int tcp_syn_cache_active; /* active syn cache, may be 0 or 1 */
int tcp_attach(struct socket *);
void tcp_canceltimers(struct tcpcb *);