Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / drivers / net / wireguard / ratelimiter.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
4  */
5
6 #ifndef _WG_RATELIMITER_H
7 #define _WG_RATELIMITER_H
8
9 #include <linux/skbuff.h>
10
11 int wg_ratelimiter_init(void);
12 void wg_ratelimiter_uninit(void);
13 bool wg_ratelimiter_allow(struct sk_buff *skb, struct net *net);
14
15 #ifdef DEBUG
16 bool wg_ratelimiter_selftest(void);
17 #endif
18
19 #endif /* _WG_RATELIMITER_H */