summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoel Knight <joel@cvs.openbsd.org>2007-09-03 06:10:55 +0000
committerJoel Knight <joel@cvs.openbsd.org>2007-09-03 06:10:55 +0000
commit2b17758a78200037a7a799da39915fd208321174 (patch)
tree2e46ba8ac8bc302c3d0e2df653eee7c31508f052 /usr.bin
parent8a9da53e94decc986720f2a9bd7e6953d6cc8a49 (diff)
Make use of the carp preempt counter to signal number of transitions of
any carp group to master status. ok dhartmei@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/inet.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index d22ee08ce9a..2ef4ac59c02 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.100 2007/06/19 05:28:30 ray Exp $ */
+/* $OpenBSD: inet.c,v 1.101 2007/09/03 06:10:54 joel Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "from: @(#)inet.c 8.4 (Berkeley) 4/20/94";
#else
-static const char *rcsid = "$OpenBSD: inet.c,v 1.100 2007/06/19 05:28:30 ray Exp $";
+static const char *rcsid = "$OpenBSD: inet.c,v 1.101 2007/09/03 06:10:54 joel Exp $";
#endif
#endif /* not lint */
@@ -950,6 +950,7 @@ carp_stats(u_long off, char *name)
p(carps_opackets, "\t%llu packet%s sent (IPv4)\n");
p(carps_opackets6, "\t%llu packet%s sent (IPv6)\n");
p2(carps_onomem, "\t\t%llu send failed due to mbuf memory error\n");
+ p(carps_preempt, "\t%llu transition%s to master\n");
#undef p
#undef p2
}