diff options
author | Andrew Vagin <avagin@virtuozzo.com> | 2018-03-02 15:46:45 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2018-05-12 11:38:46 +0300 |
commit | cd7dac19a7228fcedc228e4999ead29a20acc44e (patch) | |
tree | 46b17f76169dfec1734f67b8d1fbb6cef9b4aa78 /images/tun.proto | |
parent | 62d7780166c6736be64e52a71f7ad6e46e8fdf40 (diff) |
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>
Diffstat (limited to 'images/tun.proto')
-rw-r--r-- | images/tun.proto | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/images/tun.proto b/images/tun.proto index 796e1f5d9..b70c9ed67 100644 --- a/images/tun.proto +++ b/images/tun.proto @@ -6,6 +6,7 @@ message tunfile_entry { required uint32 id = 1; optional string netdev = 2; optional bool detached = 3; + optional uint32 ns_id = 4; }; message tun_link_entry { |