Page MenuHomeFreeBSD

tcp: no data on SYN unless doing TFO
ClosedPublic

Authored by tuexen on Mar 15 2024, 10:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 4, 12:06 AM
Unknown Object (File)
Wed, Dec 11, 8:42 PM
Unknown Object (File)
Dec 1 2024, 11:59 PM
Unknown Object (File)
Nov 29 2024, 8:51 PM
Unknown Object (File)
Nov 28 2024, 8:36 PM
Unknown Object (File)
Nov 27 2024, 6:22 AM
Unknown Object (File)
Nov 25 2024, 6:37 PM
Unknown Object (File)
Nov 25 2024, 2:03 AM
Subscribers

Details

Summary

Ensure that there is no data on SYN segments unless doing TFO. This check is already in RACK and BBR.

Test Plan

Ensure the following script passes:

+0.000 socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
+0.000 sendto(3, ..., 100, 0, ..., ...) = 100
+0.000 > S    0:0(0)             win 65535 <mss 1460,nop,wscale 6, sackOK, TS val 1000 ecr 0>
+0.050 < S.   0:0(0)     ack   1 win 65535 <mss 1460>
+0.000 > P.   1:101(100) ack   1 win 65535
+0.050 <  .   1:1(0)     ack 101 win 65535
+0.000 close(3) = 0
+0.000 > F. 101:101(0)   ack   1 win 65535
+0.050 < F.   1:1(0)     ack 102 win 65535
+0.000 >  . 102:102(0)   ack   2 win 65535

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable