diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-15 01:34:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-07-18 03:41:57 +0200 |
commit | 3106d632de4235f8c6d63d602fe2fa9e0175d690 (patch) | |
tree | f166c00ca76b4ed076429a993b40bdd2b5cbca7e /src/device.c | |
parent | tests: improve test suite and add qemu tester (diff) | |
download | wireguard-monolithic-historical-3106d632de4235f8c6d63d602fe2fa9e0175d690.tar.xz wireguard-monolithic-historical-3106d632de4235f8c6d63d602fe2fa9e0175d690.zip |
build system: revamp building and configuration
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device.c b/src/device.c index 0f922c7..bb81ce2 100644 --- a/src/device.c +++ b/src/device.c @@ -77,10 +77,9 @@ static void skb_unsendable(struct sk_buff *skb, struct net_device *dev) /* This conntrack stuff is because the rate limiting needs to be applied * to the original src IP, so we have to restore saddr in the IP header. */ struct nf_conn *ct = NULL; -#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE) enum ip_conntrack_info ctinfo; + ct = nf_ct_get(skb, &ctinfo); -#endif ++dev->stats.tx_errors; if (skb->len < sizeof(struct iphdr)) |