Module Name:    src
Committed By:   ozaki-r
Date:           Tue Jul 18 08:55:10 UTC 2017

Modified Files:
        src/sys/netipsec: ipsec.c

Log Message:
Remove m_tag_find(PACKET_TAG_IPSEC_PENDING_TDB) because nobody sets the tag


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/sys/netipsec/ipsec.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netipsec/ipsec.c
diff -u src/sys/netipsec/ipsec.c:1.102 src/sys/netipsec/ipsec.c:1.103
--- src/sys/netipsec/ipsec.c:1.102	Wed Jul 12 07:00:40 2017
+++ src/sys/netipsec/ipsec.c	Tue Jul 18 08:55:10 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ipsec.c,v 1.102 2017/07/12 07:00:40 ozaki-r Exp $	*/
+/*	$NetBSD: ipsec.c,v 1.103 2017/07/18 08:55:10 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.102 2017/07/12 07:00:40 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ipsec.c,v 1.103 2017/07/18 08:55:10 ozaki-r Exp $");
 
 /*
  * IPsec controller part.
@@ -787,16 +787,6 @@ ipsec4_input(struct mbuf *m, int flags)
 		return 0;
 	}
 
-	/*
-	 * Peek at the outbound SP for this packet to determine if
-	 * it is a Fast Forward candidate.
-	 */
-	mtag = m_tag_find(m, PACKET_TAG_IPSEC_PENDING_TDB, NULL);
-	if (mtag != NULL) {
-		m->m_flags &= ~M_CANFASTFWD;
-		return 0;
-	}
-
 	s = splsoftnet();
 	sp = ipsec4_checkpolicy(m, IPSEC_DIR_OUTBOUND, flags, &error, NULL);
 	if (sp != NULL) {

Reply via email to