Module Name: src
Committed By: drochner
Date: Fri Feb 18 16:12:26 UTC 2011
Modified Files:
src/sys/netipsec: ipsec_output.c
Log Message:
do proper statistics counting for outbound packets, fixes PR kern/30182
by Gilles Roy
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/netipsec/ipsec_output.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/netipsec/ipsec_output.c
diff -u src/sys/netipsec/ipsec_output.c:1.31 src/sys/netipsec/ipsec_output.c:1.32
--- src/sys/netipsec/ipsec_output.c:1.31 Thu Feb 10 20:42:30 2011
+++ src/sys/netipsec/ipsec_output.c Fri Feb 18 16:12:26 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec_output.c,v 1.31 2011/02/10 20:42:30 drochner Exp $ */
+/* $NetBSD: ipsec_output.c,v 1.32 2011/02/18 16:12:26 drochner Exp $ */
/*-
* Copyright (c) 2002, 2003 Sam Leffler, Errno Consulting
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.31 2011/02/10 20:42:30 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec_output.c,v 1.32 2011/02/18 16:12:26 drochner Exp $");
/*
* IPsec output processing.
@@ -263,6 +263,8 @@
goto bad;
}
+ key_sa_recordxfer(sav, m);
+
/*
* If there's another (bundled) SA to apply, do so.
* Note that this puts a burden on the kernel stack size.