tcp: send packets with a socket timestamp
authorAndrey Vagin <avagin@openvz.org>
Mon, 11 Feb 2013 05:50:19 +0000 (05:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2013 18:22:16 +0000 (13:22 -0500)
commitee684b6f2830047d19877e5547989740f18b1a5d
tree0fc416746eeca68bbba228958636dd919fc3785f
parent93be6ce0e91b6a94783e012b1857a347a5e6e9f2
tcp: send packets with a socket timestamp

A socket timestamp is a sum of the global tcp_time_stamp and
a per-socket offset.

A socket offset is added in places where externally visible
tcp timestamp option is parsed/initialized.

Connections in the SYN_RECV state are not supported, global
tcp_time_stamp is used for them, because repair mode doesn't support
this state. In a future it can be implemented by the similar way
as for TIME_WAIT sockets.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: James Morris <jmorris@namei.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_output.c
net/ipv6/tcp_ipv6.c