2013-08-23 18:57:40 +04:00
|
|
|
import "tun.proto";
|
|
|
|
|
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;
|
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;
|
|
|
|
required uint32 flags = 4;
|
|
|
|
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;
|
2012-08-02 08:17:27 +04:00
|
|
|
}
|