tcp: adding a per-socket timestamp offset
authorAndrey Vagin <[email protected]>
Mon, 11 Feb 2013 05:50:17 +0000 (05:50 +0000)
committerDavid S. Miller <[email protected]>
Wed, 13 Feb 2013 18:22:15 +0000 (13:22 -0500)
commitceaa1fef65a7c2e017b260b879b310dd24888083
treef511458ce6431cd4b5f5b46f4c633f73e49a3589
parentd0023f820e003857248d14f2213ac3930283f16c
tcp: adding a per-socket timestamp offset

This functionality is used for restoring tcp sockets. A tcp timestamp
depends on how long a system has been running, so it's differ for each
host. The solution is to set a per-socket offset.

A per-socket offset for a TIME_WAIT socket is inherited from a proper
tcp socket.

tcp_request_sock doesn't have a timestamp offset, because the repair
mode for them are not implemented.

Cc: "David S. Miller" <[email protected]>
Cc: Alexey Kuznetsov <[email protected]>
Cc: James Morris <[email protected]>
Cc: Hideaki YOSHIFUJI <[email protected]>
Cc: Patrick McHardy <[email protected]>
Cc: Eric Dumazet <[email protected]>
Cc: Pavel Emelyanov <[email protected]>
Signed-off-by: Andrey Vagin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
include/linux/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_minisocks.c