Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Don't try and add a state session if the packet ...
details: https://anonhg.NetBSD.org/src/rev/f64646bc6951
branches: trunk
changeset: 569742:f64646bc6951
user: smb <smb%NetBSD.org@localhost>
date: Fri Sep 03 04:18:09 2004 +0000
description:
Don't try and add a state session if the packet has already been checked
and marked as out of window - trying to do the add will result in a failure
and the packet being blocked, incorrectly.
Committed By: darrenr
Tested By: smb
diffstat:
sys/netinet/fil.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 41ef7ace40ce -r f64646bc6951 sys/netinet/fil.c
--- a/sys/netinet/fil.c Thu Sep 02 21:12:42 2004 +0000
+++ b/sys/netinet/fil.c Fri Sep 03 04:18:09 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fil.c,v 1.68 2004/08/22 21:38:21 chs Exp $ */
+/* $NetBSD: fil.c,v 1.69 2004/09/03 04:18:09 smb Exp $ */
/*
* Copyright (C) 1993-2003 by Darren Reed.
@@ -135,7 +135,7 @@
#if !defined(lint)
#if defined(__NetBSD__)
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.68 2004/08/22 21:38:21 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.69 2004/09/03 04:18:09 smb Exp $");
#else
static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-2000 Darren Reed";
static const char rcsid[] = "@(#)Id: fil.c,v 2.243.2.25 2004/06/30 11:26:08 darrenr Exp";
@@ -2007,7 +2007,7 @@
/*
* Finally, if we've asked to track state for this packet, set it up.
*/
- if (pass & FR_KEEPSTATE) {
+ if ((pass & FR_KEEPSTATE) && !(fin->fin_flx & FI_OOW)) {
if (fr_addstate(fin, NULL, 0) != NULL) {
ATOMIC_INCL(frstats[out].fr_ads);
} else {
Home |
Main Index |
Thread Index |
Old Index