summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-05 13:23:42 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-05 13:23:42 +0100
commit5cf526962e73cf928eb195fc3c608327dba73a49 (patch)
tree7edeb136beb44f95eae8478af2b8c6c33399c7fd
parentqemu: move build outside of kernel dir to avoid kernel's make clean (diff)
downloadwireguard-monolithic-historical-5cf526962e73cf928eb195fc3c608327dba73a49.tar.xz
wireguard-monolithic-historical-5cf526962e73cf928eb195fc3c608327dba73a49.zip
compat: fix variable assumptions
-rw-r--r--src/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compat.h b/src/compat.h
index b2cc9c9..3c73207 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -31,7 +31,7 @@
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)
#include <linux/if.h>
#include <net/udp_tunnel.h>
-#define udp_tunnel_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l) do { int ret = udp_tunnel_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l); iptunnel_xmit_stats(ret, &dev->stats, dev->tstats); } while (0)
+#define udp_tunnel_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l) do { struct net_device *dev__ = (c)->dev; int ret__ = udp_tunnel_xmit_skb(a, b, c, d, e, f, g, h, i, j, k, l); iptunnel_xmit_stats(ret__, &dev__->stats, dev__->tstats); } while (0)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) && IS_ENABLED(CONFIG_IPV6)