mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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>
18 lines
387 B
Protocol Buffer
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;
|
|
};
|