]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: allow to enable the repair mode for non-listening sockets
authorAndrey Vagin <avagin@openvz.org>
Tue, 15 Nov 2016 02:15:14 +0000 (18:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Nov 2016 03:28:50 +0000 (22:28 -0500)
commit121e9521c8dede9471a1f90682df6ad61796de33
tree5aeec604404c4ed6130312e662cb1c21d8aab922
parent920d7beee5ecbe23bec5dd4569c36b294c2a8207
tcp: allow to enable the repair mode for non-listening sockets

The repair mode is used to get and restore sequence numbers and
data from queues. It used to checkpoint/restore connections.

Currently the repair mode can be enabled for sockets in the established
and closed states, but for other states we have to dump the same socket
properties, so lets allow to enable repair mode for these sockets.

The repair mode reveals nothing more for sockets in other states.

Signed-off-by: Andrei Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c