• 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
Name
Last commit
Last update
..
atomic.h Loading commit data...
bitops.h Loading commit data...
compiler.h Loading commit data...
crtools.h Loading commit data...
file-ids.h Loading commit data...
files.h Loading commit data...
image.h Loading commit data...
inet_diag.h Loading commit data...
ipc_ns.h Loading commit data...
kcmp-ids.h Loading commit data...
libnetlink.h Loading commit data...
linkage.h Loading commit data...
list.h Loading commit data...
lock.h Loading commit data...
log.h Loading commit data...
memcpy_64.h Loading commit data...
namespaces.h Loading commit data...
parasite-syscall.h Loading commit data...
parasite.h Loading commit data...
proc_parse.h Loading commit data...
processor-flags.h Loading commit data...
ptrace.h Loading commit data...
rbtree.h Loading commit data...
restorer-log.h Loading commit data...
restorer.h Loading commit data...
sk-inet.h Loading commit data...
sk-queue.h Loading commit data...
sockets.h Loading commit data...
syscall-types.h Loading commit data...
syscall-x86-64.def Loading commit data...
sysctl.h Loading commit data...
types.h Loading commit data...
unix_diag.h Loading commit data...
util-net.h Loading commit data...
util.h Loading commit data...
uts_ns.h Loading commit data...