Source-Changes-HG archive

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

[src/trunk]: src/sys/net/npf npf_tcp_fsm: fix for the NPF_TCPS_SYN_RECEIVED s...



details:   https://anonhg.NetBSD.org/src/rev/396ceeb6e86d
branches:  trunk
changeset: 349872:396ceeb6e86d
user:      rmind <rmind%NetBSD.org@localhost>
date:      Mon Dec 26 23:10:46 2016 +0000

description:
npf_tcp_fsm: fix for the NPF_TCPS_SYN_RECEIVED state.

SYN re-transmission after SYN-ACK was seen by NPF should not terminate
the connection.  Thanks to: Alexander Kiselev <kiselev99 at gmail com>

diffstat:

 sys/net/npf/npf_state_tcp.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e0199a6f0263 -r 396ceeb6e86d sys/net/npf/npf_state_tcp.c
--- a/sys/net/npf/npf_state_tcp.c       Mon Dec 26 23:05:05 2016 +0000
+++ b/sys/net/npf/npf_state_tcp.c       Mon Dec 26 23:10:46 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npf_state_tcp.c,v 1.17 2016/12/26 23:05:06 christos Exp $      */
+/*     $NetBSD: npf_state_tcp.c,v 1.18 2016/12/26 23:10:46 rmind Exp $ */
 
 /*-
  * Copyright (c) 2010-2012 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
 
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npf_state_tcp.c,v 1.17 2016/12/26 23:05:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npf_state_tcp.c,v 1.18 2016/12/26 23:10:46 rmind Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -192,6 +192,8 @@
                        [TCPFC_ACK]     = NPF_TCPS_ESTABLISHED,
                        /* FIN may be sent early. */
                        [TCPFC_FIN]     = NPF_TCPS_FIN_SENT,
+                       /* Late SYN re-transmission. */
+                       [TCPFC_SYN]     = NPF_TCPS_OK,
                },
                [NPF_FLOW_BACK] = {
                        /* SYN-ACK may be retransmitted. */



Home | Main Index | Thread Index | Old Index