Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 2020 02:41:28 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 250499] [tcp] Should we reject the packet with timestamp if no timestamp in SYN and SYN_ACK?
Message-ID:  <bug-250499-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250499

            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@FreeBSD.org
          Reporter: yonghaoz1994@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) =3D 3
+0  setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) =3D 0
+0 fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) =3D 0
+0  bind(3, ..., ...) =3D 0
+0  listen(3, 1) =3D 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, ..., ...) =3D 4 // f-stack/FreeBSD return -1

```

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250499-227>