From 3c3d7131af07f416d8d409a130fd111def2a63c3 Mon Sep 17 00:00:00 2001 From: liamjfoy Date: Sat, 2 Sep 2006 12:41:01 +0000 Subject: [PATCH] increment ips_total too. ok matt thomas --- sys/netinet/ip_flow.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_flow.c b/sys/netinet/ip_flow.c index 32748e75da7d..f4fbc0386888 100644 --- a/sys/netinet/ip_flow.c +++ b/sys/netinet/ip_flow.c @@ -1,4 +1,4 @@ -/* $NetBSD: ip_flow.c,v 1.33 2006/06/07 22:34:01 kardel Exp $ */ +/* $NetBSD: ip_flow.c,v 1.34 2006/09/02 12:41:01 liamjfoy Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.33 2006/06/07 22:34:01 kardel Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_flow.c,v 1.34 2006/09/02 12:41:01 liamjfoy Exp $"); #include #include @@ -270,6 +270,7 @@ ipflow_addstats(struct ipflow *ipf) { ipf->ipf_ro.ro_rt->rt_use += ipf->ipf_uses; ipstat.ips_cantforward += ipf->ipf_errors + ipf->ipf_dropped; + ipstat.ips_total += ipf->ipf_uses; ipstat.ips_forward += ipf->ipf_uses; ipstat.ips_fastforward += ipf->ipf_uses; } @@ -351,6 +352,7 @@ ipflow_slowtimo(void) } else { ipf->ipf_last_uses = ipf->ipf_uses; ipf->ipf_ro.ro_rt->rt_use += ipf->ipf_uses; + ipstat.ips_total += ipf->ipf_uses; ipstat.ips_forward += ipf->ipf_uses; ipstat.ips_fastforward += ipf->ipf_uses; ipf->ipf_uses = 0;