[CRIU] [PATCH criu v5 6/7] restore net device ipv4 confs

Pavel Tikhomirov ptikhomirov at parallels.com
Tue Mar 31 00:51:13 PDT 2015


Signed-off-by: Pavel Tikhomirov <ptikhomirov at parallels.com>
---
 net.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/net.c b/net.c
index 8a1f9b3..e38cf78 100644
--- a/net.c
+++ b/net.c
@@ -464,6 +464,17 @@ static int restore_links(int pid)
 			break;
 
 		ret = restore_link(nde, nlsk);
+		if (ret) {
+			pr_err("can not restore link");
+			goto exit;
+		}
+
+		if (nde->conf) {
+			ret = ipv4_conf_op(nde->name, nde->conf, CTL_WRITE);
+			if (!ret)
+				return ret;
+		}
+exit:
 		net_device_entry__free_unpacked(nde, NULL);
 		if (ret)
 			break;
-- 
1.9.3



More information about the CRIU mailing list