2015-01-22 18:46:00 +03:00
|
|
|
import "opts.proto";
|
2013-08-23 18:57:40 +04:00
|
|
|
import "tun.proto";
|
2016-04-28 19:38:50 +03:00
|
|
|
import "sysctl.proto";
|
2013-08-23 18:57:40 +04:00
|
|
|
|
2012-08-02 08:17:27 +04:00
|
|
|
enum nd_type {
|
|
|
|
LOOPBACK = 1;
|
2012-08-10 17:24:11 +04:00
|
|
|
VETH = 2;
|
2013-08-23 18:57:40 +04:00
|
|
|
TUN = 3;
|
2013-10-10 14:31:32 +04:00
|
|
|
/*
|
|
|
|
* External link -- for those CRIU only dumps and restores
|
|
|
|
* link parameters such as flags, address, MTU, etc. The
|
|
|
|
* existence of the link on restore should be provided
|
|
|
|
* by the setup-namespaces script.
|
|
|
|
*/
|
|
|
|
EXTLINK = 4;
|
2015-10-26 13:58:00 +03:00
|
|
|
/*
|
|
|
|
* Virtuozzo specific device.
|
|
|
|
*/
|
|
|
|
VENET = 5;
|
2015-11-11 12:10:01 -07:00
|
|
|
BRIDGE = 6;
|
2012-08-02 08:17:27 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
message net_device_entry {
|
|
|
|
required nd_type type = 1;
|
|
|
|
required uint32 ifindex = 2;
|
|
|
|
required uint32 mtu = 3;
|
2015-01-22 18:46:00 +03:00
|
|
|
required uint32 flags = 4 [(criu).hex = true];
|
2012-08-02 08:17:27 +04:00
|
|
|
required string name = 5;
|
2013-08-23 18:57:40 +04:00
|
|
|
|
|
|
|
optional tun_link_entry tun = 6;
|
2013-08-24 01:07:33 +04:00
|
|
|
|
|
|
|
optional bytes address = 7;
|
2015-03-31 10:51:08 +03:00
|
|
|
|
|
|
|
repeated int32 conf = 8;
|
2016-04-28 19:38:50 +03:00
|
|
|
|
|
|
|
repeated sysctl_entry conf4 = 9;
|
2015-03-31 10:51:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
message netns_entry {
|
|
|
|
repeated int32 def_conf = 1;
|
|
|
|
repeated int32 all_conf = 2;
|
2016-04-28 19:38:50 +03:00
|
|
|
|
|
|
|
repeated sysctl_entry def_conf4 = 3;
|
|
|
|
repeated sysctl_entry all_conf4 = 4;
|
2012-08-02 08:17:27 +04:00
|
|
|
}
|