diff options
author | Mike Silbersack <silby@FreeBSD.org> | 2009-09-16 05:33:15 +0000 |
---|---|---|
committer | Mike Silbersack <silby@FreeBSD.org> | 2009-09-16 05:33:15 +0000 |
commit | b8614722ff870b42acfc96f072bfeaf435b145d0 (patch) | |
tree | 2ce0381caeec3ea6ca3ab4e0629bd7cf46223a8c /sys/netinet/tcp_var.h | |
parent | fdc1a1131ee152d7c0bc185064657214a1b19aa5 (diff) | |
download | src-b8614722ff870b42acfc96f072bfeaf435b145d0.tar.gz src-b8614722ff870b42acfc96f072bfeaf435b145d0.zip |
Add the ability to see TCP timers via netstat -x. This can be a useful
feature when you have a seemingly stuck socket and want to figure
out why it has not been closed yet.
No plans to MFC this, as it changes the netstat sysctl ABI.
Reviewed by: andre, rwatson, Eric Van Gyzen
Notes
Notes:
svn path=/head/; revision=197244
Diffstat (limited to 'sys/netinet/tcp_var.h')
-rw-r--r-- | sys/netinet/tcp_var.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 96353f3df537..93d3feb40680 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -495,11 +495,20 @@ void kmod_tcpstat_inc(int statnum); * included. Not all of our clients do. */ #if defined(_NETINET_IN_PCB_H_) && defined(_SYS_SOCKETVAR_H_) +struct xtcp_timer { + int tt_rexmt; /* retransmit timer */ + int tt_persist; /* retransmit persistence */ + int tt_keep; /* keepalive */ + int tt_2msl; /* 2*msl TIME_WAIT timer */ + int tt_delack; /* delayed ACK timer */ + int t_rcvtime; /* Time since last packet received */ +}; struct xtcpcb { size_t xt_len; struct inpcb xt_inp; struct tcpcb xt_tp; struct xsocket xt_socket; + struct xtcp_timer xt_timer; u_quad_t xt_alignment_hack; }; #endif |