[CRIU] [PATCH] inet: raw -- Reserve image members for sockets options

Andrey Vagin avagin at virtuozzo.com
Wed Sep 26 22:57:39 MSK 2018


On Tue, Sep 25, 2018 at 07:20:05PM +0300, Cyrill Gorcunov wrote:
> In vz7 we've a slightly different code base where fields
> 2 and 3 are already used. So lets reserve them and move
> raw member to another number.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
> ---
>  images/sk-inet.proto | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/images/sk-inet.proto b/images/sk-inet.proto
> index 84306ad5a4b0..75d565dcdd4c 100644
> --- a/images/sk-inet.proto
> +++ b/images/sk-inet.proto
> @@ -13,7 +13,8 @@ message ip_opts_raw_entry {
>  
>  message ip_opts_entry {
>  	optional bool			freebind	= 1;
> -	optional ip_opts_raw_entry	raw		= 2;
> +	// Fields 2 and 3 are reserved for vz7 use

How does criu use these fields?

> +	optional ip_opts_raw_entry	raw		= 4;
>  }
>  
>  message inet_sk_entry {
> -- 
> 2.17.1
> 



More information about the CRIU mailing list