diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-06-09 04:49:20 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2002-06-09 04:49:20 +0000 |
commit | bd0844acb3dc64c982ec4ee3ea498944b0eeb313 (patch) | |
tree | a78ec0582aab4f909918efd37776cbfcfe8a7255 /sbin | |
parent | 4d060efa238d6fd8a4b38d0d90cb9905fac939d4 (diff) |
Print message for kern.mbstat (to use netstat)
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/sysctl/sysctl.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/sysctl/sysctl.c b/sbin/sysctl/sysctl.c index 4fa1a73a922..2fe36fd831f 100644 --- a/sbin/sysctl/sysctl.c +++ b/sbin/sysctl/sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sysctl.c,v 1.80 2002/05/26 07:55:01 matthieu Exp $ */ +/* $OpenBSD: sysctl.c,v 1.81 2002/06/09 04:49:19 angelos Exp $ */ /* $NetBSD: sysctl.c,v 1.9 1995/09/30 07:12:50 thorpej Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)sysctl.c 8.5 (Berkeley) 5/9/95"; #else -static char *rcsid = "$OpenBSD: sysctl.c,v 1.80 2002/05/26 07:55:01 matthieu Exp $"; +static char *rcsid = "$OpenBSD: sysctl.c,v 1.81 2002/06/09 04:49:19 angelos Exp $"; #endif #endif /* not lint */ @@ -371,6 +371,11 @@ parse(string, flags) special |= KMEMSTATS; newsize = 0; break; + case KERN_MBSTAT: + if (flags == 0) + return; + warnx("use netstat to view %s", string); + return; case KERN_MSGBUF: if (flags == 0) return; |