criu/images/tun.proto
Andrew Vagin 80eaf6c90a net: Dump tun device net id in img
This adds new tunfile_entry::ns_id field and populates
it in standard socket way. Restore uses this ns_id
to choose correct namespace. Note, we could completelly
skip set_netns() on restore in case of !has_ns_id, but
using top_net_ns invents some definite behaviour.

Signed-off-by: Andrew Vagin <avagin@virtuozzo.com>
ktkhai: comment written/code movings
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
2018-03-16 08:41:17 +03:00

18 lines
387 B
Protocol Buffer

syntax = "proto2";
import "opts.proto";
message tunfile_entry {
required uint32 id = 1;
optional string netdev = 2;
optional bool detached = 3;
optional uint32 ns_id = 4;
};
message tun_link_entry {
required uint32 flags = 1 [(criu).hex = true];
required int32 owner = 2;
required int32 group = 3;
required uint32 vnethdr = 4;
required uint32 sndbuf = 5;
};