Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet Fix from Darren Reed for the test failure of f11.



details:   https://anonhg.NetBSD.org/src/rev/db0eb633d212
branches:  trunk
changeset: 481835:db0eb633d212
user:      veego <veego%NetBSD.org@localhost>
date:      Mon Feb 07 13:58:00 2000 +0000

description:
Fix from Darren Reed for the test failure of f11.

diffstat:

 sys/netinet/ip_state.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 1333a5c89bc5 -r db0eb633d212 sys/netinet/ip_state.c
--- a/sys/netinet/ip_state.c    Mon Feb 07 13:33:04 2000 +0000
+++ b/sys/netinet/ip_state.c    Mon Feb 07 13:58:00 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_state.c,v 1.21 2000/02/01 21:29:16 veego Exp $      */
+/*     $NetBSD: ip_state.c,v 1.22 2000/02/07 13:58:00 veego Exp $      */
 
 /*
  * Copyright (C) 1995-1998 by Darren Reed.
@@ -9,7 +9,7 @@
  */
 #if !defined(lint)
 #if defined(__NetBSD__)
-static const char rcsid[] = "$NetBSD: ip_state.c,v 1.21 2000/02/01 21:29:16 veego Exp $";
+static const char rcsid[] = "$NetBSD: ip_state.c,v 1.22 2000/02/07 13:58:00 veego Exp $";
 #else
 static const char sccsid[] = "@(#)ip_state.c   1.8 6/5/96 (C) 1993-1995 Darren Reed";
 static const char rcsid[] = "@(#)Id: ip_state.c,v 2.3.2.18 2000/01/27 08:51:30 darrenr Exp";
@@ -902,7 +902,6 @@
                                                isp = &ips_table[hvm];
                                                if (ips_table[hvm] == NULL)
                                                        ips_stats.iss_inuse--;
-                                               fr_delstate(is);
                                                ips_num--;
                                        }
 #endif
@@ -965,6 +964,10 @@
        fr = is->is_rule;
        fin->fin_fr = fr;
        pass = is->is_pass;
+#ifndef        _KERNEL
+       if (tcp->th_flags & TCP_CLOSE)
+               fr_delstate(is);
+#endif
        RWLOCK_EXIT(&ipf_state);
        if (fin->fin_fi.fi_fl & FI_FRAG)
                ipfr_newfrag(ip, fin, pass ^ FR_KEEPSTATE);



Home | Main Index | Thread Index | Old Index