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