aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-12-14 05:36:58 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-12-16 06:35:58 +0100
commit15a6db38a1c01515964a09497066d556bb19f1c5 (patch)
treea072e23ffcc06907be1865f8337911d693adbf2f /src
parenttests: avoid non-strict writes via printf (diff)
downloadwireguard-monolithic-historical-15a6db38a1c01515964a09497066d556bb19f1c5.tar.xz
wireguard-monolithic-historical-15a6db38a1c01515964a09497066d556bb19f1c5.zip
ratelimiter: drop family from action for 4.10
This was never actually used, and now that member of the struct has been removed all together from the kernel.
Diffstat (limited to 'src')
-rw-r--r--src/ratelimiter.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ratelimiter.c b/src/ratelimiter.c
index be3e6a1..61f7895 100644
--- a/src/ratelimiter.c
+++ b/src/ratelimiter.c
@@ -99,13 +99,11 @@ bool ratelimiter_allow(struct ratelimiter *ratelimiter, struct sk_buff *skb)
action.match = v4_match;
action.matchinfo = &ratelimiter->v4_info;
action.thoff = ip_hdrlen(skb);
- action.family = NFPROTO_IPV4;
}
#if IS_ENABLED(CONFIG_IPV6)
else if (ip_hdr(skb)->version == 6) {
action.match = v6_match;
action.matchinfo = &ratelimiter->v6_info;
- action.family = NFPROTO_IPV6;
}
#endif
else