diff options
| author | Mike Silbersack <silby@FreeBSD.org> | 2005-01-03 07:08:37 +0000 |
|---|---|---|
| committer | Mike Silbersack <silby@FreeBSD.org> | 2005-01-03 07:08:37 +0000 |
| commit | a69968ee4e95efa3171c791c1a414998eb8c227d (patch) | |
| tree | 419e14ae72d5fffa5f95740c6c7bccbd0446ec6a /sys/netinet/tcp_input.c | |
| parent | 8544432b98debc7606dfa42a00343f4e8c0e1cc4 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/tcp_input.c')
| -rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index 41fceacdfe46..13b4168a02dc 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -131,6 +131,11 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, rfc3390, CTLFLAG_RW, &tcp_do_rfc3390, 0, "Enable RFC 3390 (Increasing TCP's Initial Congestion Window)"); +static int tcp_insecure_rst = 0; +SYSCTL_INT(_net_inet_tcp, OID_AUTO, insecure_rst, CTLFLAG_RW, + &tcp_insecure_rst, 0, + "Follow the old (insecure) criteria for accepting RST packets."); + SYSCTL_NODE(_net_inet_tcp, OID_AUTO, reass, CTLFLAG_RW, 0, "TCP Segment Reassembly Queue"); @@ -1528,7 +1533,8 @@ trimthenstep6: goto close; case TCPS_ESTABLISHED: - if (tp->last_ack_sent != th->th_seq) { + if (tp->last_ack_sent != th->th_seq && + tcp_insecure_rst == 0) { tcpstat.tcps_badrst++; goto drop; } |
