summaryrefslogtreecommitdiff
path: root/usr.bin/systat/cmdtab.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-11-16 09:52:34 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-11-16 09:52:34 +0000
commitdc7846e62c6ac62ebf9919e61a103acda804bf2e (patch)
tree5527cb1e22172b934c443618bffddecd101c2fa9 /usr.bin/systat/cmdtab.c
parent6fd089cc630259f0e715a2173767d25fd646d117 (diff)
print network interface stats with 'systat ifstat'; ok deraadt, mickey
Diffstat (limited to 'usr.bin/systat/cmdtab.c')
-rw-r--r--usr.bin/systat/cmdtab.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/systat/cmdtab.c b/usr.bin/systat/cmdtab.c
index 22e2874f79a..0f77e0214ef 100644
--- a/usr.bin/systat/cmdtab.c
+++ b/usr.bin/systat/cmdtab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmdtab.c,v 1.6 2003/06/03 02:56:17 millert Exp $ */
+/* $OpenBSD: cmdtab.c,v 1.7 2004/11/16 09:52:33 markus Exp $ */
/* $NetBSD: cmdtab.c,v 1.2 1995/01/20 08:51:51 jtc Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: cmdtab.c,v 1.6 2003/06/03 02:56:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: cmdtab.c,v 1.7 2004/11/16 09:52:33 markus Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -62,6 +62,9 @@ struct cmdtab cmdtab[] = {
{ "netstat", shownetstat, fetchnetstat, labelnetstat,
initnetstat, opennetstat, closenetstat, cmdnetstat,
CF_LOADAV },
+ { "ifstat", showifstat, fetchifstat, labelifstat,
+ initifstat, openifstat, closeifstat, cmdifstat,
+ CF_LOADAV },
{ 0 }
};
struct cmdtab *curcmd = &cmdtab[0];