summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-10-31 09:00:33 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-10-31 09:00:33 +0000
commitc4a21dc23a6a2b5c8a859e8aa1a970aa992be160 (patch)
treeee51db8db4ff481938fb93dac2f3d56c6db4f2f0 /usr.bin/netstat
parente7d4db7aa9a0459685c34750cb251f39443debed (diff)
Add IPv6 support to CARP.
ok deraadt@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index b340f2139a1..6acc5fb32b4 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.70 2003/10/25 19:33:05 mcbride Exp $ */
+/* $OpenBSD: inet.c,v 1.71 2003/10/31 09:00:32 mcbride 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 char *rcsid = "$OpenBSD: inet.c,v 1.70 2003/10/25 19:33:05 mcbride Exp $";
+static char *rcsid = "$OpenBSD: inet.c,v 1.71 2003/10/31 09:00:32 mcbride Exp $";
#endif
#endif /* not lint */
@@ -854,7 +854,8 @@ carp_stats(u_long off, char *name)
#define p2(f, m) if (carpstat.f || sflag <= 1) \
printf(m, carpstat.f)
- p(carps_ipackets, "\t%u packet%s received\n");
+ p(carps_ipackets, "\t%u packet%s received (IPv4)\n");
+ p(carps_ipackets6, "\t%u packet%s received (IPv6)\n");
p(carps_hdrops, "\t\t%u packet%s shorter than header\n");
p(carps_badsum, "\t\t%u discarded for bad checksum%s\n");
p(carps_badver, "\t\t%u discarded packet%s with a bad version\n");
@@ -862,7 +863,8 @@ carp_stats(u_long off, char *name)
p2(carps_badauth, "\t\t%u discarded for bad authentication\n");
p2(carps_badvhid, "\t\t%u discarded for bad vhid\n");
p2(carps_badaddrs, "\t\t%u discarded because of a bad address list\n");
- p(carps_opackets, "\t%u packet%s sent\n");
+ p(carps_opackets, "\t%u packet%s sent (IPv4)\n");
+ p(carps_opackets6, "\t%u packet%s sent (IPv6)\n");
#if notyet
p(carps_ostates, "\t\t%s state update%s sent\n");
#endif