Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@openvz.org>2016-02-15 15:26:50 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2016-02-15 15:32:27 +0300
commit594fb527533f2377e0f98f7d46c00a0ef0219e9c (patch)
treead95c0ba37ce4edeccee6c106d0fb470e9d43391 /images/sk-inet.proto
parent319f4a08a87fd5a76a710935d3d35854aec34117 (diff)
build: Move @protobuf dir into @images
But keep @protobuf as a symlink: we have this path encoded in sources. Gonna be removed with time. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'images/sk-inet.proto')
-rw-r--r--images/sk-inet.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/images/sk-inet.proto b/images/sk-inet.proto
new file mode 100644
index 000000000..a2770dfae
--- /dev/null
+++ b/images/sk-inet.proto
@@ -0,0 +1,40 @@
+import "opts.proto";
+import "fown.proto";
+import "sk-opts.proto";
+
+message ip_opts_entry {
+ optional bool freebind = 1;
+}
+
+message inet_sk_entry {
+ /*
+ * We have two IDs here -- id and ino. The first one
+ * is used when restoring socket behind a file descriprot.
+ * The fdinfo image's id is it. The second one is used
+ * in sk-inet.c internally, in particular we identify
+ * a TCP stream to restore into this socket using the
+ * ino value.
+ */
+ required uint32 id = 1;
+ required uint32 ino = 2;
+ required uint32 family = 3;
+ required uint32 type = 4;
+ required uint32 proto = 5;
+ required uint32 state = 6;
+ required uint32 src_port = 7;
+ required uint32 dst_port = 8;
+ required uint32 flags = 9 [(criu).hex = true];
+ required uint32 backlog = 10;
+
+ repeated uint32 src_addr = 11 [(criu).ipadd = true];
+ repeated uint32 dst_addr = 12 [(criu).ipadd = true];
+
+ required fown_entry fown = 13;
+ required sk_opts_entry opts = 14;
+ optional bool v6only = 15;
+ optional ip_opts_entry ip_opts = 16;
+
+ /* for ipv6, we need to send the ifindex to bind(); we keep the ifname
+ * here and convert it on restore */
+ optional string ifname = 17;
+}