diff options
author | Pavel Emelyanov <xemul@virtuozzo.com> | 2017-04-10 14:02:00 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@virtuozzo.com> | 2017-04-11 09:01:11 +0300 |
commit | 5e3509ba1649a5a7a5b6cd807dc672d08fa696f0 (patch) | |
tree | 822982bc519196d71125483bb85d23a8a14840a8 /images/sk-inet.proto | |
parent | fe974169a56bec09d36f83485ca7b5a595ae4794 (diff) |
crit: Decode some numbers into strings
There are several places in image files, where we store
integers, but these numbers actually mean some string.
E.g. socket families, states and types and tasks states.
So here's the (criu).dict option for such fields that
helps to convert the numbers into strings and back.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
Diffstat (limited to 'images/sk-inet.proto')
-rw-r--r-- | images/sk-inet.proto | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/images/sk-inet.proto b/images/sk-inet.proto index 177f83fca..30f0134b0 100644 --- a/images/sk-inet.proto +++ b/images/sk-inet.proto @@ -19,10 +19,10 @@ message inet_sk_entry { */ 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 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"]; required uint32 src_port = 7; required uint32 dst_port = 8; required uint32 flags = 9 [(criu).hex = true]; |