Commit e4f62b85 authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Pavel Emelyanov

restore net device ipv4 confs

Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@parallels.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 590073fc
...@@ -464,6 +464,17 @@ static int restore_links(int pid) ...@@ -464,6 +464,17 @@ static int restore_links(int pid)
break; break;
ret = restore_link(nde, nlsk); 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); net_device_entry__free_unpacked(nde, NULL);
if (ret) if (ret)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment