diff options
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 8ac433d..cb5517e 100644 --- a/src/device.c +++ b/src/device.c @@ -270,6 +270,7 @@ static void setup(struct net_device *dev) netif_keep_dst(dev); memset(wg, 0, sizeof(struct wireguard_device)); + wg->dev = dev; } static int newlink(struct net *src_net, struct net_device *dev, struct nlattr *tb[], struct nlattr *data[], struct netlink_ext_ack *extack) |