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

#include <stdint.h>

enum {
	ST_H_SKIP,
	ST_H_REPLICATE
};

struct state_replication_helper {
	uint8_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 h_state);

#endif