summaryrefslogtreecommitdiff
path: root/tests/conntrackd/cthelper/ct.h
blob: f01d49d7856a31863235674b49a1ab677db0fdaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _CT_H_
#define _CT_H_

#include "../../../include/linux_list.h"
#include "../../../include/myct.h"

struct nf_ct_entry {
	struct list_head	head;
	struct myct		*myct;
};

struct cthelper_proto_l2l3_helper;
struct cthelper_proto_l4_helper;

struct nf_ct_entry *ct_alloc(const uint8_t *pkt, unsigned int l3hdr_len, struct cthelper_proto_l2l3_helper *l3h, struct cthelper_proto_l4_helper *l4h);

struct nf_ct_entry *ct_find(const uint8_t *pkt, unsigned int l3hdr_len, struct cthelper_proto_l2l3_helper *l3h, struct cthelper_proto_l4_helper *l4h, unsigned int *ctinfo);

void ct_add(struct nf_ct_entry *ct);
void ct_flush(void);

#endif