summaryrefslogtreecommitdiff
path: root/include/myct.h
blob: 45d9f292c4bf1cb094bf3e0bd32f47356fd5d40f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef _MYCT_H_
#define _MYCT_H_

#include "linux_list.h"

#include <libnetfilter_conntrack/libnetfilter_conntrack.h>

struct nf_conntrack;

enum {
	MYCT_NONE		= 0,
	MYCT_ESTABLISHED	= (1 << 0),
};

enum {
	MYCT_DIR_ORIG = 0,
	MYCT_DIR_REPL,
	MYCT_DIR_MAX,
};

union myct_proto {
	uint16_t port;
	uint16_t all;
};

struct myct_man {
	union nfct_attr_grp_addr u3;
	union myct_proto	u;
	uint16_t		l3num;
	uint8_t			protonum;
};

struct myct_tuple {
	struct myct_man		src;
	struct myct_man		dst;
};

struct myct {
	struct nf_conntrack *ct;
	void *priv_data;
};

#endif