summaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorSoheil Hassas Yeganeh2016-04-03 05:08:07 +0200
committerDavid S. Miller2016-04-04 21:50:29 +0200
commit6db8b963a7a31047573f229492ff6fc0f51cc377 (patch)
treedf425c13c2e6cccb85fdf52fc43103823f26ac67 /include/net/tcp.h
parentsock: break up sock_cmsg_snd into __sock_cmsg_snd and loop (diff)
downloadkernel-qcow2-linux-6db8b963a7a31047573f229492ff6fc0f51cc377.tar.gz
kernel-qcow2-linux-6db8b963a7a31047573f229492ff6fc0f51cc377.tar.xz
kernel-qcow2-linux-6db8b963a7a31047573f229492ff6fc0f51cc377.zip
tcp: accept SOF_TIMESTAMPING_OPT_ID for passive TFO
SOF_TIMESTAMPING_OPT_ID is set to get data-independent IDs to associate timestamps with send calls. For TCP connections, tp->snd_una is used as the starting point to calculate relative IDs. This socket option will fail if set before the handshake on a passive TCP fast open connection with data in SYN or SYN/ACK, since setsockopt requires the connection to be in the ESTABLISHED state. To address these, instead of limiting the option to the ESTABLISHED state, accept the SOF_TIMESTAMPING_OPT_ID option as long as the connection is not in LISTEN or CLOSE states. Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Willem de Bruijn <willemb@google.com> Acked-by: Yuchung Cheng <ycheng@google.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
0 files changed, 0 insertions, 0 deletions