On Fri, 2016-04-01 at 11:04 -0400, Soheil Hassas Yeganeh wrote: > From: Soheil Hassas Yeganeh <soh...@google.com> > > 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.
Acked-by: Eric Dumazet <eduma...@google.com>