summaryrefslogtreecommitdiffhomepage
path: root/src/device.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-07-15 01:34:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-07-18 03:41:57 +0200
commitf650e11c1e0a46dabbd6254dcbbe37174ac45bfd (patch)
tree48a9ec7c088f42c38d68dd53dc4e23b7a4942c35 /src/device.c
parentab013cc1adde5e5e2aa06f3ce451e76ca3494b0c (diff)
build system: revamp building and configuration
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c3
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))