ratelimiter.h 432 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
  4. */
  5. #ifndef _WG_RATELIMITER_H
  6. #define _WG_RATELIMITER_H
  7. #include <linux/skbuff.h>
  8. int wg_ratelimiter_init(void);
  9. void wg_ratelimiter_uninit(void);
  10. bool wg_ratelimiter_allow(struct sk_buff *skb, struct net *net);
  11. #ifdef DEBUG
  12. bool wg_ratelimiter_selftest(void);
  13. #endif
  14. #endif /* _WG_RATELIMITER_H */