[CRIU] [PATCH 1/6] images: netdev -- Align members

Cyrill Gorcunov gorcunov at gmail.com
Fri Aug 31 13:09:59 MSK 2018


Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 images/netdev.proto | 49 ++++++++++++++++++++++-----------------------
 1 file changed, 24 insertions(+), 25 deletions(-)

diff --git a/images/netdev.proto b/images/netdev.proto
index 476a92cedb40..320b5c9e747d 100644
--- a/images/netdev.proto
+++ b/images/netdev.proto
@@ -24,51 +24,50 @@ enum nd_type {
 }
 
 message net_device_entry {
-	required nd_type type		= 1;
-	required uint32  ifindex	= 2;
-	required uint32  mtu		= 3;
-	required uint32  flags		= 4 [(criu).hex = true];
-	required string  name		= 5;
+	required nd_type		type		= 1;
+	required uint32			ifindex		= 2;
+	required uint32			mtu		= 3;
+	required uint32			flags		= 4 [(criu).hex = true];
+	required string			name		= 5;
 
-	optional tun_link_entry tun	= 6;
+	optional tun_link_entry		tun		= 6;
 
-	optional bytes address		= 7;
+	optional bytes			address		= 7;
 
-	repeated int32 conf		= 8;
+	repeated int32			conf		= 8;
 
-	repeated sysctl_entry conf4	= 9;
-
-	repeated sysctl_entry conf6	= 10;
+	repeated sysctl_entry		conf4		= 9;
+	repeated sysctl_entry		conf6		= 10;
 
 	optional macvlan_link_entry	macvlan		= 11;
 
-	optional uint32 peer_ifindex	= 12;
-	optional uint32 peer_nsid	= 13;
-	optional uint32 master		= 14;
-	optional sit_entry sit		= 15;
+	optional uint32			peer_ifindex	= 12;
+	optional uint32			peer_nsid	= 13;
+	optional uint32			master		= 14;
+	optional sit_entry		sit		= 15;
 }
 
 message netns_id {
 	/* This is CRIU's id which is allocated for each namespace */
-	required uint32	target_ns_id	= 1;
+	required uint32			target_ns_id	= 1;
 	/*
 	 * This is an id which can be used to address this namespace
 	 * from another network namespace. Each network namespace has
 	 * one set of id-s for other namespaces.
 	 */
-	required int32	netnsid_value	= 2;
+	required int32			netnsid_value	= 2;
 }
 
 message netns_entry {
-	repeated int32 def_conf		= 1;
-	repeated int32 all_conf		= 2;
+	repeated int32			def_conf	= 1;
+	repeated int32			all_conf	= 2;
 
-	repeated sysctl_entry def_conf4	= 3;
-	repeated sysctl_entry all_conf4	= 4;
+	repeated sysctl_entry		def_conf4	= 3;
+	repeated sysctl_entry		all_conf4	= 4;
 
-	repeated sysctl_entry def_conf6	= 5;
-	repeated sysctl_entry all_conf6	= 6;
+	repeated sysctl_entry		def_conf6	= 5;
+	repeated sysctl_entry		all_conf6	= 6;
 
-	repeated netns_id nsids		= 7;
-	optional string	ext_key		= 8;
+	repeated netns_id		nsids		= 7;
+	optional string			ext_key		= 8;
 }
-- 
2.17.1



More information about the CRIU mailing list