2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 22:35:33 +00:00

restore net device ipv4 confs

Signed-off-by: Pavel Tikhomirov <ptikhomirov@parallels.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Tikhomirov
2015-03-31 10:51:13 +03:00
committed by Pavel Emelyanov
parent 590073fc55
commit e4f62b85cc

11
net.c
View File

@@ -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;