tcp: Add tcp-close option to restore connected TCP sockets in closed state
New restore option 'tcp-close' was introduced. It restores all connected TCP sockets in TCP_CLOSE state. Here we consider tcp sockets in TCP_ESTABLISHED, TCP_FIN_WAIT2, TCP_FIN_WAIT1, TCP_CLOSE_WAIT, TCP_LAST_ACK, TCP_CLOSING, TCP_SYN_SENT states as connected sockets. This is consistent with current CRIU usage of these states. Thus this option doesn't affect sockets with original states of TCP_LISTEN and TCP_CLOSE. Signed-off-by:Pavel Begunkov <asml.silence@gmail.com> Signed-off-by:
Eugene Batalov <eabatalov89@gmail.com> Signed-off-by:
Andrei Vagin <avagin@virtuozzo.com>
Showing
Please
register
or
sign in
to comment