From f650e11c1e0a46dabbd6254dcbbe37174ac45bfd Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 15 Jul 2016 01:34:37 +0200 Subject: build system: revamp building and configuration Signed-off-by: Jason A. Donenfeld --- src/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/device.c') 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)) -- cgit v1.2.3