Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 don't attach Adler32 checksum to ipcomp payload.



details:   https://anonhg.NetBSD.org/src/rev/c14aaf1af34d
branches:  trunk
changeset: 481352:c14aaf1af34d
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jan 26 17:08:41 2000 +0000

description:
don't attach Adler32 checksum to ipcomp payload.

diffstat:

 sys/netinet6/ipcomp_core.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r ec908d8912ad -r c14aaf1af34d sys/netinet6/ipcomp_core.c
--- a/sys/netinet6/ipcomp_core.c        Wed Jan 26 17:06:36 2000 +0000
+++ b/sys/netinet6/ipcomp_core.c        Wed Jan 26 17:08:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ipcomp_core.c,v 1.7 2000/01/16 17:56:46 itojun Exp $   */
+/*     $NetBSD: ipcomp_core.c,v 1.8 2000/01/26 17:08:41 itojun Exp $   */
 
 /*
  * Copyright (C) 1999 WIDE Project.
@@ -68,10 +68,12 @@
 /*
  * We need to use default window size (2^15 = 32Kbytes as of writing) for
  * inbound case.  Otherwise we get interop problem.
+ * Use negative value to avoid Adler32 checksum.  This is an undocumented
+ * feature in zlib (see ipsec wg mailing list archive in January 2000).
  */
 static int deflate_policy = Z_DEFAULT_COMPRESSION;
-static int deflate_window_out = 12;
-static const int deflate_window_in = MAX_WBITS;        /* don't change it */
+static int deflate_window_out = -12;
+static const int deflate_window_in = -1 * MAX_WBITS;   /* don't change it */
 static int deflate_memlevel = MAX_MEM_LEVEL; 
 
 struct ipcomp_algorithm ipcomp_algorithms[] = {



Home | Main Index | Thread Index | Old Index