]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The handling of RST segments in the SYN-RCVD state exists in the
authorMichael Tuexen <tuexen@FreeBSD.org>
Thu, 18 Oct 2018 19:21:18 +0000 (19:21 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Thu, 18 Oct 2018 19:21:18 +0000 (19:21 +0000)
commit93899d10b4c788726ea3a441db7031a98eda486e
tree70d1b83a8943f3abd316fc88354196ebaf8dd81b
parentd485128bd0e0065b45e3266420443a68a507d693
The handling of RST segments in the SYN-RCVD state exists in the
code paths. Both are not consistent and the one on the syn cache code
does not conform to the relevant specifications (Page 69 of RFC 793
and Section 4.2 of RFC 5961).

This patch fixes this:
* The sequence numbers checks are fixed as specified on
  page Page 69 RFC 793.
* The sysctl variable net.inet.tcp.insecure_rst is now honoured
  and the behaviour as specified in Section 4.2 of RFC 5961.

Approved by: re (gjb@)
Reviewed by: bz@, glebius@, rrs@,
Differential Revision: https://reviews.freebsd.org/D17595
Sponsored by: Netflix, Inc.
sys/netinet/tcp_input.c
sys/netinet/tcp_syncache.c
sys/netinet/tcp_syncache.h