• Pavel Emelyanov's avatar
    tcp: Prepare sk-inet for dumping and restoring tcp connections · 051b0a1f
    Pavel Emelyanov authored
    First of all -- to make crtools dump/restore established tcp sockets
    you have to specify the --tcp-established options. By doing so you
    inform crtools that
    
    a) you know, that after dump there will be a netfilter rules blocking
       the dumped connections
    
    b) you guarantee, that before restore this netfilter block is still
       there
    
    What else this patch does is simple -- collects establised sockets and
    calls the dump/restore tcp function (now empty) where appropriate.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    051b0a1f
sockets.c 6.76 KB