mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
There are two places where we store IP addresses (both IPv4 and IPv6). Mark them with custom option and print them in compressed form for --pretty output. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Acked-by: Ruslan Kuprieiev <kupruser@gmail.com>
31 lines
954 B
Protocol Buffer
31 lines
954 B
Protocol Buffer
import "opts.proto";
|
|
import "fown.proto";
|
|
import "sk-opts.proto";
|
|
|
|
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;
|
|
}
|