summaryrefslogtreecommitdiff
path: root/include/state_helper.h
blob: 00158904583330f5ae1a81b2aacc7efc669a30f1 (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 state);

#endif