2020-05-08 11:36:57 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2016-07-01 21:49:54 +02:00
|
|
|
syntax = "proto2";
|
|
|
|
|
2015-01-22 18:46:00 +03:00
|
|
|
import "opts.proto";
|
2012-07-19 09:26:47 +04:00
|
|
|
import "fown.proto";
|
|
|
|
import "sk-opts.proto";
|
|
|
|
|
2018-09-13 22:57:54 +03:00
|
|
|
message ip_opts_raw_entry {
|
|
|
|
optional bool hdrincl = 1;
|
|
|
|
optional bool nodefrag = 2;
|
|
|
|
optional bool checksum = 3;
|
|
|
|
repeated uint32 icmpv_filter = 4;
|
|
|
|
}
|
|
|
|
|
2015-11-19 17:48:21 +03:00
|
|
|
message ip_opts_entry {
|
2018-09-13 22:57:54 +03:00
|
|
|
optional bool freebind = 1;
|
2018-09-25 19:20:05 +03:00
|
|
|
// Fields 2 and 3 are reserved for vz7 use
|
|
|
|
optional ip_opts_raw_entry raw = 4;
|
2022-11-29 14:47:28 +03:00
|
|
|
|
|
|
|
optional bool pktinfo = 5;
|
2015-11-19 17:48:21 +03:00
|
|
|
}
|
|
|
|
|
2012-07-19 09:26:47 +04:00
|
|
|
message inet_sk_entry {
|
2012-08-15 17:45:40 +04:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
2012-07-19 09:26:47 +04:00
|
|
|
required uint32 id = 1;
|
|
|
|
required uint32 ino = 2;
|
2017-04-10 14:02:00 +03:00
|
|
|
required uint32 family = 3 [(criu).dict = "sk"];
|
|
|
|
required uint32 type = 4 [(criu).dict = "sk"];
|
|
|
|
required uint32 proto = 5 [(criu).dict = "sk"];
|
|
|
|
required uint32 state = 6 [(criu).dict = "sk"];
|
2012-07-19 09:26:47 +04:00
|
|
|
required uint32 src_port = 7;
|
|
|
|
required uint32 dst_port = 8;
|
2015-01-22 18:46:00 +03:00
|
|
|
required uint32 flags = 9 [(criu).hex = true];
|
2012-07-19 09:26:47 +04:00
|
|
|
required uint32 backlog = 10;
|
|
|
|
|
2015-01-28 17:16:00 +03:00
|
|
|
repeated uint32 src_addr = 11 [(criu).ipadd = true];
|
|
|
|
repeated uint32 dst_addr = 12 [(criu).ipadd = true];
|
2012-07-19 09:26:47 +04:00
|
|
|
|
|
|
|
required fown_entry fown = 13;
|
|
|
|
required sk_opts_entry opts = 14;
|
2012-08-14 12:46:43 +04:00
|
|
|
optional bool v6only = 15;
|
2015-11-19 17:48:21 +03:00
|
|
|
optional ip_opts_entry ip_opts = 16;
|
2015-11-25 00:28:00 +03:00
|
|
|
|
|
|
|
/* for ipv6, we need to send the ifindex to bind(); we keep the ifname
|
|
|
|
* here and convert it on restore */
|
|
|
|
optional string ifname = 17;
|
2017-02-15 02:59:25 +03:00
|
|
|
optional uint32 ns_id = 18;
|
2017-03-03 18:39:15 +03:00
|
|
|
optional sk_shutdown shutdown = 19;
|
2012-07-19 09:26:47 +04:00
|
|
|
}
|