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:
committed by
Pavel Emelyanov
parent
590073fc55
commit
e4f62b85cc
11
net.c
11
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;
|
||||
|
Reference in New Issue
Block a user