summaryrefslogtreecommitdiffstats
path: root/include/state_helper.h
blob: 1ed0b79f4b961e9b8b89a48a4a43a2bcf7300a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _STATE_HELPER_H_
#define _STATE_HELPER_H_

enum {
	ST_H_SKIP,
	ST_H_REPLICATE
};

struct state_replication_helper {
	u_int8_t 		proto;
	unsigned int		state;

	int (*verdict)(const struct state_replication_helper *h,
		       const struct nf_conntrack *ct); 
};

int state_helper_verdict(int type, struct nf_conntrack *ct);
void state_helper_register(struct state_replication_helper *h, int state);

#endif