Debian Codegraph @

crit/images/sk-inet.proto

raw
1 // SPDX-License-Identifier: MIT
2
3 syntax = "proto2";
4
5 import "opts.proto";
6 import "fown.proto";
7 import "sk-opts.proto";
8
9 message ip_opts_raw_entry {
10 optional bool hdrincl = 1;
11 optional bool nodefrag = 2;
12 optional bool checksum = 3;
13 repeated uint32 icmpv_filter = 4;
14 }
15
16 message ip_opts_entry {
17 optional bool freebind = 1;
18 // Fields 2 and 3 are reserved for vz7 use
19 optional ip_opts_raw_entry raw = 4;
20
21 optional bool pktinfo = 5;
22 }
23
24 message inet_sk_entry {
25 /*
26 * We have two IDs here -- id and ino. The first one
27 * is used when restoring socket behind a file descriprot.
28 * The fdinfo image's id is it. The second one is used
29 * in sk-inet.c internally, in particular we identify
30 * a TCP stream to restore into this socket using the
31 * ino value.
32 */
33 required uint32 id = 1;
34 required uint32 ino = 2;
35 required uint32 family = 3 [(criu).dict = "sk"];
36 required uint32 type = 4 [(criu).dict = "sk"];
37 required uint32 proto = 5 [(criu).dict = "sk"];
38 required uint32 state = 6 [(criu).dict = "sk"];
39 required uint32 src_port = 7;
40 required uint32 dst_port = 8;
41 required uint32 flags = 9 [(criu).hex = true];
42 required uint32 backlog = 10;
43
44 repeated uint32 src_addr = 11 [(criu).ipadd = true];
45 repeated uint32 dst_addr = 12 [(criu).ipadd = true];
46
47 required fown_entry fown = 13;
48 required sk_opts_entry opts = 14;
49 optional bool v6only = 15;
50 optional ip_opts_entry ip_opts = 16;
51
52 /* for ipv6, we need to send the ifindex to bind(); we keep the ifname
53 * here and convert it on restore */
54 optional string ifname = 17;
55 optional uint32 ns_id = 18;
56 optional sk_shutdown shutdown = 19;
57 }