Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netipsec Use IPSEC_DIR_IS_INOROUT (NFC)
details: https://anonhg.NetBSD.org/src/rev/9cfba4668ec4
branches: trunk
changeset: 353095:9cfba4668ec4
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu Apr 20 06:27:08 2017 +0000
description:
Use IPSEC_DIR_IS_INOROUT (NFC)
diffstat:
sys/netipsec/key.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r fd4494738024 -r 9cfba4668ec4 sys/netipsec/key.c
--- a/sys/netipsec/key.c Thu Apr 20 05:48:38 2017 +0000
+++ b/sys/netipsec/key.c Thu Apr 20 06:27:08 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: key.c,v 1.115 2017/04/20 03:41:47 ozaki-r Exp $ */
+/* $NetBSD: key.c,v 1.116 2017/04/20 06:27:08 ozaki-r Exp $ */
/* $FreeBSD: src/sys/netipsec/key.c,v 1.3.2.3 2004/02/14 22:23:23 bms Exp $ */
/* $KAME: key.c,v 1.191 2001/06/27 10:46:49 sakane Exp $ */
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.115 2017/04/20 03:41:47 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: key.c,v 1.116 2017/04/20 06:27:08 ozaki-r Exp $");
/*
* This code is referd to RFC 2367
@@ -594,8 +594,7 @@
int s;
KASSERT(spidx != NULL);
- KASSERTMSG(dir == IPSEC_DIR_INBOUND || dir == IPSEC_DIR_OUTBOUND,
- "invalid direction %u", dir);
+ KASSERTMSG(IPSEC_DIR_IS_INOROUT(dir), "invalid direction %u", dir);
KEYDEBUG_PRINTF(KEYDEBUG_IPSEC_STAMP, "DP from %s:%u\n", where, tag);
Home |
Main Index |
Thread Index |
Old Index