2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

net: Basic netns dump/restore skeleton

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-08-02 08:06:29 +04:00
parent 2d56d1b056
commit 0a827aa96c
6 changed files with 46 additions and 0 deletions

18
net.c Normal file
View File

@@ -0,0 +1,18 @@
#include <unistd.h>
#include "syscall-types.h"
#include "namespaces.h"
#include "net.h"
int dump_net_ns(int pid, struct cr_fdset *fds)
{
int ret;
ret = switch_ns(pid, CLONE_NEWNET, "net", NULL);
return ret;
}
int prepare_net_ns(int pid)
{
return -1;
}