summaryrefslogtreecommitdiff
path: root/include/net/netfilter/nf_flow_table.h
blob: 3a0779589281bd27e4770adbac3e738aef1ecb1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _NF_FLOW_TABLE_H
#define _NF_FLOW_TABLE_H

#include <linux/rhashtable.h>

struct nf_flowtable;

struct nf_flowtable_type {
	struct list_head		list;
	int				family;
	void				(*gc)(struct work_struct *work);
	const struct rhashtable_params	*params;
	nf_hookfn			*hook;
	struct module			*owner;
};

struct nf_flowtable {
	struct rhashtable		rhashtable;
	const struct nf_flowtable_type	*type;
	struct delayed_work		gc_work;
};

#endif /* _FLOW_OFFLOAD_H */