mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
Since we're going to switch from int-fd-s to class-image soon the fdset name will not fit into the new terminology. This patch is sed -e 's/fdset/imgset/g' -i * sed -e 's/imgset_fd/img_from_set/g' -i * git mv include/fdset.h include/imgset.h Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
29 lines
681 B
C
29 lines
681 B
C
#ifndef __CR_NET_H__
|
|
#define __CR_NET_H__
|
|
|
|
#include "list.h"
|
|
|
|
struct cr_imgset;
|
|
extern int dump_net_ns(int pid, int ns_id);
|
|
extern int prepare_net_ns(int pid);
|
|
extern int netns_pre_create(void);
|
|
|
|
struct veth_pair {
|
|
struct list_head node;
|
|
char *inside;
|
|
char *outside;
|
|
};
|
|
|
|
extern int network_lock(void);
|
|
extern void network_unlock(void);
|
|
|
|
extern struct ns_desc net_ns_desc;
|
|
|
|
#include "protobuf/netdev.pb-c.h"
|
|
extern int write_netdev_img(NetDeviceEntry *nde, struct cr_imgset *fds);
|
|
extern int read_ns_sys_file(char *path, char *buf, int len);
|
|
extern int restore_link_parms(NetDeviceEntry *nde, int nlsk);
|
|
|
|
extern int veth_pair_add(char *in, char *out);
|
|
|
|
#endif /* __CR_NET_H__ */
|