summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1997-09-25 00:34:35 +0000
committerwollman <wollman@FreeBSD.org>1997-09-25 00:34:35 +0000
commit6c4e9fc61332696898bfd76840cc344e5d8f7b95 (patch)
treefa44de3ce6755535c79ae38a312ba2da7d22ecc1 /sys/netinet/ip_input.c
parent24ebd3d8b6b375d482903390c612c24aa0f39c97 (diff)
downloadFreeBSD-src-6c4e9fc61332696898bfd76840cc344e5d8f7b95.zip
FreeBSD-src-6c4e9fc61332696898bfd76840cc344e5d8f7b95.tar.gz
Export ipstat via sysctl. Don't understand why this wasn't done before.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 6de4076..3e04a9b 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.64 1997/07/25 03:58:21 brian Exp $
+ * $Id: ip_input.c,v 1.65 1997/09/15 23:07:01 ache Exp $
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
*/
@@ -110,6 +110,8 @@ SYSCTL_INT(_net_inet_ip, IPCTL_INTRQDROPS, intr_queue_drops, CTLFLAG_RD,
&ipintrq.ifq_drops, 0, "");
struct ipstat ipstat;
+SYSCTL_STRUCT(_net_inet_ip, IPCTL_STATS, stats, CTLFLAG_RD,
+ &ipstat, ipstat, "");
/* Packet reassembly stuff */
#define IPREASS_NHASH_LOG2 6
OpenPOWER on IntegriCloud