Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net PR/42285: PR/41559: Daniel Hagerty: if_stf doesn't c...



details:   https://anonhg.NetBSD.org/src/rev/8375201bf4b1
branches:  trunk
changeset: 748868:8375201bf4b1
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 08 18:44:45 2009 +0000

description:
PR/42285: PR/41559: Daniel Hagerty: if_stf doesn't count output bytes

diffstat:

 sys/net/if_stf.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 8bc1cc98824f -r 8375201bf4b1 sys/net/if_stf.c
--- a/sys/net/if_stf.c  Sun Nov 08 17:01:58 2009 +0000
+++ b/sys/net/if_stf.c  Sun Nov 08 18:44:45 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_stf.c,v 1.72 2009/04/18 14:58:05 tsutsui Exp $      */
+/*     $NetBSD: if_stf.c,v 1.73 2009/11/08 18:44:45 christos Exp $     */
 /*     $KAME: if_stf.c,v 1.62 2001/06/07 22:32:16 itojun Exp $ */
 
 /*
@@ -75,7 +75,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_stf.c,v 1.72 2009/04/18 14:58:05 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_stf.c,v 1.73 2009/11/08 18:44:45 christos Exp $");
 
 #include "opt_inet.h"
 
@@ -431,6 +431,7 @@
        }
 
        ifp->if_opackets++;
+       ifp->if_obytes += m->m_pkthdr.len - sizeof(struct ip);
        return ip_output(m, NULL, &sc->sc_ro, 0, NULL, NULL);
 }
 



Home | Main Index | Thread Index | Old Index