Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netkey allow any SPI value to be used, if well-known ipc...
details: https://anonhg.NetBSD.org/src/rev/334352a76270
branches: trunk
changeset: 476128:334352a76270
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Sep 07 07:41:45 1999 +0000
description:
allow any SPI value to be used, if well-known ipcomp CPI is used.
From: Laine Stump <lainestump%rcn.com@localhost>
To: current-users%netbsd.org@localhost
Message-Id: <3.0.3.32.19990907020809.0091fc90%pop.rcn.com@localhost>
Date: Tue, 07 Sep 1999 02:08:09 -0400
diffstat:
sys/netkey/key.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 4bea6dd388d9 -r 334352a76270 sys/netkey/key.c
--- a/sys/netkey/key.c Tue Sep 07 06:54:21 1999 +0000
+++ b/sys/netkey/key.c Tue Sep 07 07:41:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.10 1999/08/24 00:46:12 itojun Exp $ */
+/* $NetBSD: key.c,v 1.11 1999/09/07 07:41:45 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -2760,7 +2760,8 @@
printf("key_mature: protocol and algorithm mismated.\n");
return(EINVAL);
}
- if (ntohl(sa->spi) >= 0x10000) {
+ if ((sa->flags & SADB_X_EXT_RAWCPI) == 0
+ && ntohl(sa->spi) >= 0x10000) {
printf("key_mature: invalid cpi for IPComp.\n");
return(EINVAL);
}
Home |
Main Index |
Thread Index |
Old Index