We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f909532 commit 55dab3bCopy full SHA for 55dab3b
src/device.c
@@ -19,6 +19,7 @@
19
#include <linux/if_arp.h>
20
#include <linux/icmp.h>
21
#include <linux/suspend.h>
22
+#include <net/dst_metadata.h>
23
#include <net/icmp.h>
24
#include <net/rtnetlink.h>
25
#include <net/ip_tunnels.h>
@@ -160,7 +161,7 @@ static netdev_tx_t wg_xmit(struct sk_buff *skb, struct net_device *dev)
160
161
goto err_peer;
162
}
163
- mtu = skb_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu;
164
+ mtu = skb_valid_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu;
165
166
__skb_queue_head_init(&packets);
167
if (!skb_is_gso(skb)) {
0 commit comments