mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-05 00:35:23 +00:00
tcp: Prepare sk-inet for dumping and restoring tcp connections
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: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -39,7 +39,7 @@ struct socket_desc {
|
||||
struct socket_desc *lookup_socket(int ino);
|
||||
int sk_collect_one(int ino, int family, struct socket_desc *d);
|
||||
int dump_one_inet(struct socket_desc *_sk, struct fd_parms *p,
|
||||
const struct cr_fdset *cr_fdset);
|
||||
int lfd, const struct cr_fdset *cr_fdset);
|
||||
int dump_one_unix(const struct socket_desc *_sk, struct fd_parms *p,
|
||||
int lfd, const struct cr_fdset *cr_fdset);
|
||||
struct nlmsghdr;
|
||||
|
Reference in New Issue
Block a user