Displaying 1 result from an estimated 1 matches for "tcps_badrst".
2004 Apr 23
1
Proposed RST patch
...put.c /usr/src/sys/netinet/tcp_input.c
--- /usr/src/sys.old/netinet/tcp_input.c Thu Apr 22 01:15:15 2004
+++ /usr/src/sys/netinet/tcp_input.c Fri Apr 23 22:13:18 2004
@@ -1570,6 +1570,10 @@
goto close;
case TCPS_ESTABLISHED:
+ if (tp->last_ack_sent != th->th_seq) {
+ tcpstat.tcps_badrst++;
+ goto drop;
+ }
case TCPS_FIN_WAIT_1:
case TCPS_FIN_WAIT_2:
case TCPS_CLOSE_WAIT:
diff -u -r /usr/src/sys.old/netinet/tcp_var.h /usr/src/sys/netinet/tcp_var.h
--- /usr/src/sys.old/netinet/tcp_var.h Thu Apr 22 01:15:16 2004
+++ /usr/src/sys/netinet/tcp_var.h Fri Apr 23 22:12:4...