mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
net: Pass NLM_F_CREATE flag on link restore
This one is required to say, that we do want a new device is it doesn't exists. This is so for all the devices except lo. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
2
net.c
2
net.c
@@ -150,7 +150,7 @@ static int restore_one_link(NetDeviceEntry *nde, int nlsk)
|
||||
memset(&req, 0, sizeof(req));
|
||||
|
||||
req.h.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg));
|
||||
req.h.nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK;
|
||||
req.h.nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK|NLM_F_CREATE;
|
||||
req.h.nlmsg_type = RTM_NEWLINK;
|
||||
req.h.nlmsg_seq = CR_NLMSG_SEQ;
|
||||
req.i.ifi_family = AF_PACKET;
|
||||
|
Reference in New Issue
Block a user