Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/netinet6 Pull up following revision(s) (requested by ...
details: https://anonhg.NetBSD.org/src/rev/55a00fef8449
branches: netbsd-8
changeset: 434383:55a00fef8449
user: snj <snj%NetBSD.org@localhost>
date: Wed Nov 08 22:24:55 2017 +0000
description:
Pull up following revision(s) (requested by ozaki-r in ticket #350):
sys/netinet6/icmp6.c: revision 1.214
sys/netinet6/raw_ip6.c: revision 1.158
Fix usages of ipsec_used
If IPsec isn't used, we must go back to the normal path.
PR kern/52659
diffstat:
sys/netinet6/icmp6.c | 7 ++++---
sys/netinet6/raw_ip6.c | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r 292eb53055bf -r 55a00fef8449 sys/netinet6/icmp6.c
--- a/sys/netinet6/icmp6.c Wed Nov 08 22:20:59 2017 +0000
+++ b/sys/netinet6/icmp6.c Wed Nov 08 22:24:55 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: icmp6.c,v 1.211.6.2 2017/10/21 19:43:54 snj Exp $ */
+/* $NetBSD: icmp6.c,v 1.211.6.3 2017/11/08 22:24:55 snj Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.211.6.2 2017/10/21 19:43:54 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: icmp6.c,v 1.211.6.3 2017/11/08 22:24:55 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2012,7 +2012,8 @@
/*
* Check AH/ESP integrity
*/
- if (ipsec_used && !ipsec6_in_reject(m, last))
+ if (!ipsec_used ||
+ (ipsec_used && !ipsec6_in_reject(m, last)))
#endif /* IPSEC */
if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
if (last->in6p_flags & IN6P_CONTROLOPTS)
diff -r 292eb53055bf -r 55a00fef8449 sys/netinet6/raw_ip6.c
--- a/sys/netinet6/raw_ip6.c Wed Nov 08 22:20:59 2017 +0000
+++ b/sys/netinet6/raw_ip6.c Wed Nov 08 22:24:55 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: raw_ip6.c,v 1.157 2017/06/01 02:45:14 chs Exp $ */
+/* $NetBSD: raw_ip6.c,v 1.157.2.1 2017/11/08 22:24:55 snj Exp $ */
/* $KAME: raw_ip6.c,v 1.82 2001/07/23 18:57:56 jinmei Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.157 2017/06/01 02:45:14 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: raw_ip6.c,v 1.157.2.1 2017/11/08 22:24:55 snj Exp $");
#ifdef _KERNEL_OPT
#include "opt_ipsec.h"
@@ -205,7 +205,8 @@
/*
* Check AH/ESP integrity
*/
- if (ipsec_used && !ipsec6_in_reject(m, last))
+ if (!ipsec_used ||
+ (ipsec_used && !ipsec6_in_reject(m, last)))
#endif /* IPSEC */
if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
if (last->in6p_flags & IN6P_CONTROLOPTS)
Home |
Main Index |
Thread Index |
Old Index