summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/main.c
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 /usr.bin/netstat/main.c
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 'usr.bin/netstat/main.c')
-rw-r--r--usr.bin/netstat/main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c
index 418b1366f7b..8c7bbc9dd2f 100644
--- a/usr.bin/netstat/main.c
+++ b/usr.bin/netstat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.109 2016/01/01 17:38:45 mpi Exp $ */
+/* $OpenBSD: main.c,v 1.110 2016/07/20 19:57:54 bluhm Exp $ */
/* $NetBSD: main.c,v 1.9 1996/05/07 02:55:02 thorpej Exp $ */
/*
@@ -388,6 +388,12 @@ plurales(u_int64_t n)
return (n != 1 ? "es" : "");
}
+char *
+pluralys(u_int64_t n)
+{
+ return (n != 1 ? "ies" : "y");
+}
+
/*
* Find the protox for the given "well-known" name.
*/