2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

tcp: dump and restore tcp_timestamp for each socket (v2)

If a TCP socket will get live-migrated from one box to another the
timestamps (which are typically ON) will get screwed up -- the new
kernel will generate TS values that has nothing to do with what they
were on dump. The solution is to yet again fix the kernel and put a
"timestamp offset" on a socket.

v2: don't fail if TCP_TIMESTAMP is unsupported

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2013-02-14 20:27:39 +04:00
committed by Pavel Emelyanov
parent b752e05e41
commit 04c48fefbc
2 changed files with 29 additions and 0 deletions

View File

@@ -8,4 +8,5 @@ message tcp_stream_entry {
required uint32 snd_wscale = 6;
required uint32 mss_clamp = 7;
optional uint32 rcv_wscale = 8;
optional uint32 timestamp = 9;
}