Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec do proper statistics counting for outbound pack...



details:   https://anonhg.NetBSD.org/src/rev/d322741aaf57
branches:  trunk
changeset: 762274:d322741aaf57
user:      drochner <drochner%NetBSD.org@localhost>
date:      Fri Feb 18 16:12:26 2011 +0000

description:
do proper statistics counting for outbound packets, fixes PR kern/30182
by Gilles Roy

diffstat:

 sys/netipsec/ipsec_output.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 833c1bd46baa -r d322741aaf57 sys/netipsec/ipsec_output.c
--- a/sys/netipsec/ipsec_output.c       Fri Feb 18 16:10:11 2011 +0000
+++ b/sys/netipsec/ipsec_output.c       Fri Feb 18 16:12:26 2011 +0000
@@ -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.



Home | Main Index | Thread Index | Old Index