Source-Changes-HG archive

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

[src/trunk]: src/sys/netipsec fix compiling with IPSEC_DEBUG:



details:   https://anonhg.NetBSD.org/src/rev/71a3b746ec18
branches:  trunk
changeset: 763618:71a3b746ec18
user:      spz <spz%NetBSD.org@localhost>
date:      Sun Mar 27 21:56:57 2011 +0000

description:
fix compiling with IPSEC_DEBUG:
it's authsize not authlen in struct auth_hash

diffstat:

 sys/netipsec/xform_esp.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 79762078474e -r 71a3b746ec18 sys/netipsec/xform_esp.c
--- a/sys/netipsec/xform_esp.c  Sun Mar 27 21:41:08 2011 +0000
+++ b/sys/netipsec/xform_esp.c  Sun Mar 27 21:56:57 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xform_esp.c,v 1.30 2011/02/25 20:13:10 drochner Exp $  */
+/*     $NetBSD: xform_esp.c,v 1.31 2011/03/27 21:56:57 spz Exp $       */
 /*     $FreeBSD: src/sys/netipsec/xform_esp.c,v 1.2.2.1 2003/01/24 05:11:36 sam Exp $  */
 /*     $OpenBSD: ip_esp.c,v 1.69 2001/06/26 06:18:59 angelos Exp $ */
 
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.30 2011/02/25 20:13:10 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xform_esp.c,v 1.31 2011/03/27 21:56:57 spz Exp $");
 
 #include "opt_inet.h"
 #ifdef __FreeBSD__
@@ -1001,8 +1001,8 @@
                 */
                esph = sav->tdb_authalgxform;
                if (esph !=  NULL) {
-                       m_copyback(m, m->m_pkthdr.len - esph->authlen,
-                           esph->authlen, ipseczeroes);
+                       m_copyback(m, m->m_pkthdr.len - esph->authsize,
+                           esph->authsize, ipseczeroes);
                }
        }
 #endif



Home | Main Index | Thread Index | Old Index