diff options
author | wollman <wollman@FreeBSD.org> | 1997-09-24 02:43:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1997-09-24 02:43:45 +0000 |
commit | 57eb2ca27ae0db0529c08d313a97117ed75cd0f8 (patch) | |
tree | d9d0748fd095f3ebbc0424d1780b409d6895560c /usr.bin/systat/mbufs.c | |
parent | ace16f9a4bb54d69518d6aaddf9ba9d6fe278e7c (diff) | |
download | FreeBSD-src-57eb2ca27ae0db0529c08d313a97117ed75cd0f8.zip FreeBSD-src-57eb2ca27ae0db0529c08d313a97117ed75cd0f8.tar.gz |
Add a mode to display ICMP statistics.
Inspired by: IRIX netstat -C
Diffstat (limited to 'usr.bin/systat/mbufs.c')
-rw-r--r-- | usr.bin/systat/mbufs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c index 8ee325f..08e4347 100644 --- a/usr.bin/systat/mbufs.c +++ b/usr.bin/systat/mbufs.c @@ -34,7 +34,7 @@ #ifndef lint static char sccsid[] = "@(#)mbufs.c 8.1 (Berkeley) 6/6/93"; static const char rcsid[] = - "$Id$"; + "$Id: mbufs.c,v 1.5 1997/02/24 20:59:03 wollman Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -42,6 +42,7 @@ static const char rcsid[] = #include <sys/mbuf.h> #include <sys/sysctl.h> +#include <errno.h> #include <stdlib.h> #include <string.h> #include <paths.h> @@ -182,5 +183,5 @@ fetchmbufs() len = sizeof *mb; if (sysctl(name, 3, mb, &len, 0, 0) < 0) - return; + printw("sysctl: %s", strerror(errno)); } |