mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
net: Put ifname and mtu on newlink request
The name will be valid for new veth, mtu has to be restored for all devices. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
3
net.c
3
net.c
@@ -160,7 +160,8 @@ static int restore_one_link(NetDeviceEntry *nde, int nlsk)
|
||||
req.i.ifi_index = nde->ifindex;
|
||||
req.i.ifi_flags = nde->flags;
|
||||
|
||||
/* FIXME -- restore mtu as well */
|
||||
addattr_l(&req.h, sizeof(req), IFLA_IFNAME, nde->name, strlen(nde->name));
|
||||
addattr_l(&req.h, sizeof(req), IFLA_MTU, &nde->mtu, sizeof(nde->mtu));
|
||||
|
||||
pr_info("Restoring netdev idx %d\n", nde->ifindex);
|
||||
return do_rtnl_req(nlsk, &req, req.h.nlmsg_len, restore_link_cb, NULL);
|
||||
|
Reference in New Issue
Block a user