Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 fix ipcomp behavior against -R to meet document...
details: https://anonhg.NetBSD.org/src/rev/c05a2d8e55b0
branches: trunk
changeset: 476228:c05a2d8e55b0
user: itojun <itojun%NetBSD.org@localhost>
date: Fri Sep 10 02:05:24 1999 +0000
description:
fix ipcomp behavior against -R to meet documentation.
From: Laine Stump <lainestump%rcn.com@localhost>
diffstat:
sys/netinet6/ipcomp_output.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r a7cc83e0ca92 -r c05a2d8e55b0 sys/netinet6/ipcomp_output.c
--- a/sys/netinet6/ipcomp_output.c Fri Sep 10 00:30:59 1999 +0000
+++ b/sys/netinet6/ipcomp_output.c Fri Sep 10 02:05:24 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipcomp_output.c,v 1.5 1999/07/30 10:35:37 itojun Exp $ */
+/* $NetBSD: ipcomp_output.c,v 1.6 1999/09/10 02:05:24 itojun Exp $ */
/*
* Copyright (C) 1999 WIDE Project.
@@ -147,9 +147,9 @@
return EINVAL;
}
if ((sa->flags & SADB_X_EXT_RAWCPI) == 0)
- cpi = ntohl(sa->spi) & 0xffff;
+ cpi = sa->alg_enc;
else
- cpi = sa->alg_enc;
+ cpi = ntohl(sa->spi) & 0xffff;
algo = &ipcomp_algorithms[sa->alg_enc]; /*XXX*/
/* compute original payload length */
Home |
Main Index |
Thread Index |
Old Index