Module Name:    src
Committed By:   christos
Date:           Sun Nov  8 18:44:46 UTC 2009

Modified Files:
        src/sys/net: if_stf.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/net/if_stf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_stf.c
diff -u src/sys/net/if_stf.c:1.72 src/sys/net/if_stf.c:1.73
--- src/sys/net/if_stf.c:1.72	Sat Apr 18 10:58:05 2009
+++ src/sys/net/if_stf.c	Sun Nov  8 13:44:45 2009
@@ -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);
 }
 

Reply via email to