| 1 |
// SPDX-License-Identifier: MIT |
| 2 |
|
| 3 |
syntax = "proto2"; |
| 4 |
|
| 5 |
import "macvlan.proto"; |
| 6 |
import "opts.proto"; |
| 7 |
import "tun.proto"; |
| 8 |
import "sysctl.proto"; |
| 9 |
import "sit.proto"; |
| 10 |
|
| 11 |
enum nd_type { |
| 12 |
LOOPBACK = 1; |
| 13 |
VETH = 2; |
| 14 |
TUN = 3; |
| 15 |
/* |
| 16 |
* External link -- for those CRIU only dumps and restores |
| 17 |
* link parameters such as flags, address, MTU, etc. The |
| 18 |
* existence of the link on restore should be provided |
| 19 |
* by the setup-namespaces script. |
| 20 |
*/ |
| 21 |
EXTLINK = 4; |
| 22 |
VENET = 5; /* OpenVZ device */ |
| 23 |
BRIDGE = 6; |
| 24 |
MACVLAN = 7; |
| 25 |
SIT = 8; |
| 26 |
} |
| 27 |
|
| 28 |
message net_device_entry { |
| 29 |
required nd_type type = 1; |
| 30 |
required uint32 ifindex = 2; |
| 31 |
required uint32 mtu = 3; |
| 32 |
required uint32 flags = 4 [(criu).hex = true]; |
| 33 |
required string name = 5; |
| 34 |
|
| 35 |
optional tun_link_entry tun = 6; |
| 36 |
|
| 37 |
optional bytes address = 7; |
| 38 |
|
| 39 |
repeated int32 conf = 8; |
| 40 |
|
| 41 |
repeated sysctl_entry conf4 = 9; |
| 42 |
|
| 43 |
repeated sysctl_entry conf6 = 10; |
| 44 |
|
| 45 |
optional macvlan_link_entry macvlan = 11; |
| 46 |
|
| 47 |
optional uint32 peer_ifindex = 12; |
| 48 |
optional uint32 peer_nsid = 13; |
| 49 |
optional uint32 master = 14; |
| 50 |
optional sit_entry sit = 15; |
| 51 |
} |
| 52 |
|
| 53 |
message netns_id { |
| 54 |
/* This is CRIU's id which is allocated for each namespace */ |
| 55 |
required uint32 target_ns_id = 1; |
| 56 |
/* |
| 57 |
* This is an id which can be used to address this namespace |
| 58 |
* from another network namespace. Each network namespace has |
| 59 |
* one set of id-s for other namespaces. |
| 60 |
*/ |
| 61 |
required int32 netnsid_value = 2; |
| 62 |
} |
| 63 |
|
| 64 |
message netns_entry { |
| 65 |
repeated int32 def_conf = 1; |
| 66 |
repeated int32 all_conf = 2; |
| 67 |
|
| 68 |
repeated sysctl_entry def_conf4 = 3; |
| 69 |
repeated sysctl_entry all_conf4 = 4; |
| 70 |
|
| 71 |
repeated sysctl_entry def_conf6 = 5; |
| 72 |
repeated sysctl_entry all_conf6 = 6; |
| 73 |
|
| 74 |
repeated netns_id nsids = 7; |
| 75 |
optional string ext_key = 8; |
| 76 |
repeated sysctl_entry unix_conf = 9; |
| 77 |
} |