mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 18:25:14 +00:00
Implementing c/r of bridges with slaves shouldn't be too hard (viz. the
comment), but this is all I need to for right now.
v2: remove extra debug statement
v3: * remember to close fd in dump_bridge
* use "known" buffer length and snprintf for spath in dump_bridge
* change brace style
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
39 lines
776 B
Protocol Buffer
39 lines
776 B
Protocol Buffer
import "opts.proto";
|
|
import "tun.proto";
|
|
|
|
enum nd_type {
|
|
LOOPBACK = 1;
|
|
VETH = 2;
|
|
TUN = 3;
|
|
/*
|
|
* 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;
|
|
/*
|
|
* Virtuozzo specific device.
|
|
*/
|
|
VENET = 5;
|
|
BRIDGE = 6;
|
|
}
|
|
|
|
message net_device_entry {
|
|
required nd_type type = 1;
|
|
required uint32 ifindex = 2;
|
|
required uint32 mtu = 3;
|
|
required uint32 flags = 4 [(criu).hex = true];
|
|
required string name = 5;
|
|
|
|
optional tun_link_entry tun = 6;
|
|
|
|
optional bytes address = 7;
|
|
|
|
repeated int32 conf = 8;
|
|
}
|
|
|
|
message netns_entry {
|
|
repeated int32 def_conf = 1;
|
|
repeated int32 all_conf = 2;
|
|
}
|