mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 17:14:28 +00:00
When restoring a container crtools create veth pair inside it and then pushed one end to the namespaces crtools live in (outside). To facilitate the subsequent management of the otter end of the veth pair this option is added -- one can specifu a name by which the respective end would be visible. E.g.: --veth-pair eth0=veth101.0 Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
19 lines
337 B
C
19 lines
337 B
C
#ifndef __CR_NET_H__
|
|
#define __CR_NET_H__
|
|
|
|
#include "list.h"
|
|
|
|
struct cr_options;
|
|
void show_netdevices(int fd, struct cr_options *);
|
|
|
|
struct cr_fdset;
|
|
int dump_net_ns(int pid, struct cr_fdset *);
|
|
int prepare_net_ns(int pid);
|
|
int netns_pre_create(void);
|
|
|
|
struct veth_pair {
|
|
struct list_head node;
|
|
char *inside;
|
|
char *outside;
|
|
};
|
|
#endif
|