criu/images/opts.proto
Pavel Emelyanov e77d36c375 crit: Beautify unix names recode
Unix socket name can be a string with any bytes in it. So to
print the name we use base64 encoding. Doing so doesn't allow
to see the socket name when it contains only printable chars.

So here's the custom encoding for bytes fields, that can be
used for custom conversion.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2017-04-11 09:01:11 +03:00

18 lines
545 B
Protocol Buffer

syntax = "proto2";
import "google/protobuf/descriptor.proto";
message CRIU_Opts {
optional bool hex = 1; // Idicate that CRIT should treat this field as hex.
optional bool ipadd = 2; // The field is IPv4/v6 address
optional string flags = 3;
optional bool dev = 4; // Device major:minor packed
optional bool odev = 5; // ... in old format
optional string dict = 6;
optional string conv = 7;
}
extend google.protobuf.FieldOptions {
// Registered unique number to use for all kinds of custom options.
optional CRIU_Opts criu = 1018;
}