summaryrefslogtreecommitdiffhomepage
path: root/src/ratelimiter.h
blob: fed73f70b0e25ff4af76ca41cb17260cd5a91452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */

#ifndef RATELIMITER_H
#define RATELIMITER_H

#include <linux/skbuff.h>

int ratelimiter_init(void);
void ratelimiter_uninit(void);
bool ratelimiter_allow(struct sk_buff *skb, struct net *net);

#endif