diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2016-01-27 00:45:46 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2016-01-27 00:45:46 +0000 |
commit | 57a78e3baeb583a817195e5aee153f6387b9b2b0 (patch) | |
tree | dd0b39d31460d52fec634711ce845f26d7406828 /usr.bin/systat | |
parent | 2027d8784f8376de9f24d93495cb879349ab1220 (diff) | |
download | src-57a78e3baeb583a817195e5aee153f6387b9b2b0.tar.gz src-57a78e3baeb583a817195e5aee153f6387b9b2b0.zip |
Augment struct tcpstat with tcps_states[], which is used for book-keeping
the amount of TCP connections by state. Provides a cheap way to get
connection count without traversing the whole pcb list.
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=294869
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/netstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c index 3f994e8707cd..56bc34ea3021 100644 --- a/usr.bin/systat/netstat.c +++ b/usr.bin/systat/netstat.c @@ -59,10 +59,10 @@ static const char sccsid[] = "@(#)netstat.c 8.1 (Berkeley) 6/6/93"; #include <netinet/tcp.h> #include <netinet/tcpip.h> #include <netinet/tcp_seq.h> -#include <netinet/tcp_var.h> #define TCPSTATES #include <netinet/tcp_fsm.h> #include <netinet/tcp_timer.h> +#include <netinet/tcp_var.h> #include <netinet/tcp_debug.h> #include <netinet/udp.h> #include <netinet/udp_var.h> |