ratelimiter.h (432B)
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 11int wg_ratelimiter_init(void); 12void wg_ratelimiter_uninit(void); 13bool wg_ratelimiter_allow(struct sk_buff *skb, struct net *net); 14 15#ifdef DEBUG 16bool wg_ratelimiter_selftest(void); 17#endif 18 19#endif /* _WG_RATELIMITER_H */