summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/netstat.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2016-01-27 00:45:46 +0000
committerglebius <glebius@FreeBSD.org>2016-01-27 00:45:46 +0000
commit9487eaf98f45a433931bad91a3463694f5423688 (patch)
treedd0b39d31460d52fec634711ce845f26d7406828 /usr.bin/systat/netstat.c
parent1a12f8d9a17a94b40aad848fb3fa61b3f0eb1acf (diff)
downloadFreeBSD-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/systat/netstat.c')
-rw-r--r--usr.bin/systat/netstat.c2
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>
OpenPOWER on IntegriCloud