2012-08-02 08:06:29 +04:00
|
|
|
#ifndef __CR_NET_H__
|
|
|
|
#define __CR_NET_H__
|
2012-09-02 01:07:32 +04:00
|
|
|
|
|
|
|
#include "list.h"
|
|
|
|
|
2012-08-02 08:17:27 +04:00
|
|
|
struct cr_options;
|
|
|
|
void show_netdevices(int fd, struct cr_options *);
|
|
|
|
|
2012-08-02 08:06:29 +04:00
|
|
|
struct cr_fdset;
|
|
|
|
int dump_net_ns(int pid, struct cr_fdset *);
|
|
|
|
int prepare_net_ns(int pid);
|
2012-08-10 19:14:36 +04:00
|
|
|
int netns_pre_create(void);
|
2012-09-02 01:07:32 +04:00
|
|
|
|
|
|
|
struct veth_pair {
|
|
|
|
struct list_head node;
|
|
|
|
char *inside;
|
|
|
|
char *outside;
|
|
|
|
};
|
2012-09-17 20:05:55 +04:00
|
|
|
|
|
|
|
extern int network_lock(void);
|
|
|
|
extern void network_unlock(void);
|
2012-12-25 22:40:24 +04:00
|
|
|
|
2013-01-15 23:24:01 +04:00
|
|
|
extern struct ns_desc net_ns_desc;
|
|
|
|
|
2012-12-25 22:40:24 +04:00
|
|
|
#endif /* __CR_NET_H__ */
|