]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r367530:
authorMichael Tuexen <tuexen@FreeBSD.org>
Mon, 30 Nov 2020 09:45:44 +0000 (09:45 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Mon, 30 Nov 2020 09:45:44 +0000 (09:45 +0000)
commit455a97e447557c8c92d81de9356d44d109ac4e10
tree0165e333abfa6b1b0ecd420385a1fff5a1299ba0
parent29ae8e12c9602f2c2fc5afe3a971a177f2f002e5
MFC r367530:
RFC 7323 specifies that:
* TCP segments without timestamps should be dropped when support for
  the timestamp option has been negotiated.
* TCP segments with timestamps should be processed normally if support
  for the timestamp option has not been negotiated.
This patch enforces the above.
Manually resolved merge conflicts.

MFC 367891:
Fix an issue I introuced in r367530: tcp_twcheck() can be called
with to == NULL for SYN segments. So don't assume tp != NULL.
Thanks to jhb@ for reporting and suggesting a fix.

MFC r367946:
Fix two occurences of a typo in a comment introduced in r367530.
Thanks to lstewart@ for reporting them.

PR: 250499
Reviewed by: gnn, rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D27148
sys/netinet/tcp_input.c
sys/netinet/tcp_stacks/rack.c
sys/netinet/tcp_syncache.c
sys/netinet/tcp_timewait.c