[Bug 250499] [tcp] Should we reject the packet with timestamp if no timestamp in SYN and SYN_ACK?

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Oct 21 02:41:29 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250499

            Bug ID: 250499
           Summary: [tcp] Should we reject the packet with timestamp if no
                    timestamp in SYN and SYN_ACK?
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: yonghaoz1994 at gmail.com

If there are no timestamp option in SYN and SYNACK packets, it seems FreeBSD
now rejects the last ACK packet with timestamp as the following packetdrill
script shows, but should we do that?

```
// Establish a connection.
0   socket(..., SOCK_STREAM, IPPROTO_TCP) = 3
+0  setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
+0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
+0  bind(3, ..., ...) = 0
+0  listen(3, 1) = 0

+0 < S 0:0(0) win 12336
+0 ~ +1  > S. 0:0(0) ack 1 <mss 1460>

+.1 < . 1:1(0) ack 1 win 25710 <TS val 100 ecr 0,eol,eol>

+0.2 accept(3, ..., ...) = 4 // f-stack/FreeBSD return -1

```

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list