xref: /linux/drivers/net/wireguard/ratelimiter.h (revision 48dea9a700c8728cc31a1dd44588b97578de86ee)
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 */
20