ipflow (IP fast forwarding) is not compatible with FAST_IPSEC either.

XXX: The decision whether or not to fast forward should be made
XXX: dynamically. Using the current approach seriously reduces
XXX: routing performance on gateways with IPsec enabled.
This commit is contained in:
scw 2003-12-04 10:02:35 +00:00
parent d67b3528da
commit 7ef39665ff
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_input.c,v 1.187 2003/11/26 21:15:47 itojun Exp $ */
/* $NetBSD: ip_input.c,v 1.188 2003/12/04 10:02:35 scw Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -98,7 +98,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.187 2003/11/26 21:15:47 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.188 2003/12/04 10:02:35 scw Exp $");
#include "opt_inet.h"
#include "opt_gateway.h"
@ -561,7 +561,7 @@ ip_input(struct mbuf *m)
m_adj(m, len - m->m_pkthdr.len);
}
#ifdef IPSEC
#if defined(IPSEC) || defined(FAST_IPSEC)
/* ipflow (IP fast forwarding) is not compatible with IPsec. */
m->m_flags &= ~M_CANFASTFWD;
#else