Contributors: 8
| Author |
Tokens |
Token Proportion |
Commits |
Commit Proportion |
| Florian Westphal |
66 |
40.49% |
3 |
23.08% |
| Yi-Hung Wei |
35 |
21.47% |
3 |
23.08% |
| Fernando Fernandez Mancera |
23 |
14.11% |
2 |
15.38% |
| Pablo Neira Ayuso |
17 |
10.43% |
1 |
7.69% |
| Jeremy Sowden |
9 |
5.52% |
1 |
7.69% |
| Jan Engelhardt |
5 |
3.07% |
1 |
7.69% |
| William Tu |
4 |
2.45% |
1 |
7.69% |
| Alexey Dobriyan |
4 |
2.45% |
1 |
7.69% |
| Total |
163 |
|
13 |
|
#ifndef _NF_CONNTRACK_COUNT_H
#define _NF_CONNTRACK_COUNT_H
#include <linux/list.h>
#include <linux/spinlock.h>
#include <net/netfilter/nf_conntrack_tuple.h>
#include <net/netfilter/nf_conntrack_zones.h>
struct nf_conncount_data;
struct nf_conncount_list {
spinlock_t list_lock;
u32 last_gc; /* jiffies at most recent gc */
struct list_head head; /* connections with the same filtering key */
unsigned int count; /* length of list */
unsigned int last_gc_count; /* length of list at most recent gc */
};
struct nf_conncount_data *nf_conncount_init(struct net *net, unsigned int keylen);
void nf_conncount_destroy(struct net *net, struct nf_conncount_data *data);
unsigned int nf_conncount_count_skb(struct net *net,
const struct sk_buff *skb,
u16 l3num,
struct nf_conncount_data *data,
const u32 *key);
int nf_conncount_add_skb(struct net *net, const struct sk_buff *skb,
u16 l3num, struct nf_conncount_list *list);
void nf_conncount_list_init(struct nf_conncount_list *list);
bool nf_conncount_gc_list(struct net *net,
struct nf_conncount_list *list);
void nf_conncount_cache_free(struct nf_conncount_list *list);
#endif