diff options
author | glebius <glebius@FreeBSD.org> | 2016-01-27 00:45:46 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2016-01-27 00:45:46 +0000 |
commit | 9487eaf98f45a433931bad91a3463694f5423688 (patch) | |
tree | dd0b39d31460d52fec634711ce845f26d7406828 /usr.bin | |
parent | 1a12f8d9a17a94b40aad848fb3fa61b3f0eb1acf (diff) | |
download | FreeBSD-src-9487eaf98f45a433931bad91a3463694f5423688.zip FreeBSD-src-9487eaf98f45a433931bad91a3463694f5423688.tar.gz |
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
Diffstat (limited to 'usr.bin')
-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 3f994e8..56bc34e 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> |