tcp: block connections in both directions
tcp: block connections in both directions

The packet can be retransmited after dumping the tcp connect.  The first
one is that the connection is blocked for only one direction. The second
one is that TCP timers continue work during dumping and they can send
packets. tcp_timestamp is saved for each tcp connections and then it’s
restored. So if a packet is sent after dumping, its timestamps is
saved by another side and this timestamp is sent back in the next packet
as the tsecr parameter. If this packet is received after restoring, it
looks like a packets from the future.

https://bugzilla.openvz.org/show_bug.cgi?id=2676

Signed-off-by: Andrew Vagin <74c05afa918858348d6db8037d82fa8124870113@openvz.org>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@parallels.com>

fbocharov/criu,AuthenticEshkinKot/criu,KKoukiou/criu-remote,efiop/criu,marcosnils/criu,eabatalov/criu,efiop/criu,wtf42/criu,LK4D4/criu,ldu4/criu,KKoukiou/criu-remote,biddyweb/criu,LK4D4/criu,tych0/criu,sdgdsffdsfff/criu,gonkulator/criu,svloyso/criu,LK4D4/criu,marcosnils/criu,KKoukiou/criu-remote,AuthenticEshkinKot/criu,AuthenticEshkinKot/criu,gablg1/criu,marcosnils/criu,eabatalov/criu,gablg1/criu,sdgdsffdsfff/criu,ldu4/criu,gonkulator/criu,wtf42/criu,LK4D4/criu,wtf42/criu,rentzsch/criu,ldu4/criu,AuthenticEshkinKot/criu,rentzsch/criu,kawamuray/criu,efiop/criu,KKoukiou/criu-remote,eabatalov/criu,marcosnils/criu,eabatalov/criu,ldu4/criu,wtf42/criu,gonkulator/criu,marcosnils/criu,kawamuray/criu,ldu4/criu,rentzsch/criu,tych0/criu,wtf42/criu,biddyweb/criu,ldu4/criu,fbocharov/criu,fbocharov/criu,fbocharov/criu,svloyso/criu,wtf42/criu,gablg1/criu,efiop/criu,svloyso/criu,biddyweb/criu,tych0/criu,eabatalov/criu,kawamuray/criu,rentzsch/criu,efiop/criu,gonkulator/criu,fbocharov/criu,biddyweb/criu,gonkulator/criu,AuthenticEshkinKot/criu,gablg1/criu,eabatalov/criu,sdgdsffdsfff/criu,AuthenticEshkinKot/criu,LK4D4/criu,tych0/criu,tych0/criu,gonkulator/criu,rentzsch/criu,gablg1/criu,sdgdsffdsfff/criu,sdgdsffdsfff/criu,KKoukiou/criu-remote,sdgdsffdsfff/criu,kawamuray/criu,biddyweb/criu,kawamuray/criu,gablg1/criu,efiop/criu,marcosnils/criu,biddyweb/criu,KKoukiou/criu-remote,svloyso/criu,svloyso/criu,LK4D4/criu,svloyso/criu,rentzsch/criu,fbocharov/criu,tych0/criu,kawamuray/criu