Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Rename IPSEC_PCBHINT_MAYBE to IPSEC_PCBHINT_UNK...
details: https://anonhg.NetBSD.org/src/rev/cc6a665b1c21
branches: trunk
changeset: 354041:cc6a665b1c21
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Jun 02 03:39:28 2017 +0000
description:
Rename IPSEC_PCBHINT_MAYBE to IPSEC_PCBHINT_UNKNOWN
MAYBE is maybe unclear.
diffstat:
sys/netipsec/ipsec.c | 8 ++++----
sys/netipsec/ipsec.h | 4 ++--
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 114d80b05085 -r cc6a665b1c21 sys/netipsec/ipsec.c
--- a/sys/netipsec/ipsec.c Fri Jun 02 03:34:10 2017 +0000
+++ b/sys/netipsec/ipsec.c Fri Jun 02 03:39:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec.c,v 1.97 2017/06/02 03:34:10 ozaki-r Exp $ */
+/* $NetBSD: ipsec.c,v 1.98 2017/06/02 03:39:28 ozaki-r Exp $ */
/* $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec.c,v 1.2.2.2 2003/07/01 01:38:13 sam Exp $ */
/* $KAME: ipsec.c,v 1.103 2001/05/24 07:14:18 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.97 2017/06/02 03:34:10 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.98 2017/06/02 03:39:28 ozaki-r Exp $");
/*
* IPsec controller part.
@@ -275,7 +275,7 @@
if (pcbsp->sp_cache[dir].cachesp)
KEY_FREESP(&pcbsp->sp_cache[dir].cachesp);
pcbsp->sp_cache[dir].cachesp = NULL;
- pcbsp->sp_cache[dir].cachehint = IPSEC_PCBHINT_MAYBE;
+ pcbsp->sp_cache[dir].cachehint = IPSEC_PCBHINT_UNKNOWN;
if (ipsec_setspidx(m, &pcbsp->sp_cache[dir].cacheidx, 1) != 0) {
return EINVAL;
}
@@ -322,7 +322,7 @@
if (pcbsp->sp_cache[i].cachesp)
KEY_FREESP(&pcbsp->sp_cache[i].cachesp);
pcbsp->sp_cache[i].cachesp = NULL;
- pcbsp->sp_cache[i].cachehint = IPSEC_PCBHINT_MAYBE;
+ pcbsp->sp_cache[i].cachehint = IPSEC_PCBHINT_UNKNOWN;
pcbsp->sp_cache[i].cachegen = 0;
memset(&pcbsp->sp_cache[i].cacheidx, 0,
sizeof(pcbsp->sp_cache[i].cacheidx));
diff -r 114d80b05085 -r cc6a665b1c21 sys/netipsec/ipsec.h
--- a/sys/netipsec/ipsec.h Fri Jun 02 03:34:10 2017 +0000
+++ b/sys/netipsec/ipsec.h Fri Jun 02 03:39:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipsec.h,v 1.48 2017/05/19 04:34:09 ozaki-r Exp $ */
+/* $NetBSD: ipsec.h,v 1.49 2017/06/02 03:39:28 ozaki-r Exp $ */
/* $FreeBSD: /usr/local/www/cvsroot/FreeBSD/src/sys/netipsec/ipsec.h,v 1.2.4.2 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: ipsec.h,v 1.53 2001/11/20 08:32:38 itojun Exp $ */
@@ -123,7 +123,7 @@
struct secpolicy *cachesp;
struct secpolicyindex cacheidx;
int cachehint; /* processing requirement hint: */
-#define IPSEC_PCBHINT_MAYBE 0 /* IPsec processing maybe required */
+#define IPSEC_PCBHINT_UNKNOWN 0 /* Unknown */
#define IPSEC_PCBHINT_YES 1 /* IPsec processing is required */
#define IPSEC_PCBHINT_NO 2 /* IPsec processing not required */
u_int cachegen; /* spdgen when cache filled */
Home |
Main Index |
Thread Index |
Old Index