Commit 425ed1e9 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4ae4c4ac
......@@ -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;
......
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