Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
0004  */
0005 
0006 #ifndef _WG_RATELIMITER_H
0007 #define _WG_RATELIMITER_H
0008 
0009 #include <linux/skbuff.h>
0010 
0011 int wg_ratelimiter_init(void);
0012 void wg_ratelimiter_uninit(void);
0013 bool wg_ratelimiter_allow(struct sk_buff *skb, struct net *net);
0014 
0015 #ifdef DEBUG
0016 bool wg_ratelimiter_selftest(void);
0017 #endif
0018 
0019 #endif /* _WG_RATELIMITER_H */