From 054ef37088aeb0e310b5edb1d5eebe47b2c3a973 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Wed, 1 Nov 1995 17:18:27 +0000 Subject: Instrument the IP input queue with two new read-only MIB entries: net.inet.ip.intr-queue-maxlen (=== ipintrq.ifq_maxlen) and net.inet.ip.intr-queue-drops (=== ipintrq.ifq_drops) There should probably be a standard way of getting the same information going the other way. --- sys/netinet/ip_input.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/netinet/ip_input.c') diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index b514ca7592a6..383573b79694 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.25 1995/07/09 14:29:46 davidg Exp $ + * $Id: ip_input.c,v 1.26 1995/07/18 09:56:44 peter Exp $ */ #include @@ -1228,6 +1228,11 @@ ip_sysctl(name, namelen, oldp, oldlenp, newp, newlen) case IPCTL_RTMAXCACHE: return (sysctl_int(oldp, oldlenp, newp, newlen, &rtq_toomany)); + case IPCTL_INTRQMAXLEN: + return (sysctl_rdint(oldp, oldlenp, newp, + ipintrq.ifq_maxlen)); + case IPCTL_INTRQDROPS: + return (sysctl_rdint(oldp, oldlenp, newp, ipintrq.ifq_drops)); default: return (EOPNOTSUPP); } -- cgit v1.3