summaryrefslogtreecommitdiff
path: root/include/external.h
blob: 938941ab159d3a8c321b51f7c28bf3a475e01042 (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
#ifndef _EXTERNAL_H_
#define _EXTERNAL_H_

struct nf_conntrack;

struct external_handler {
	int	(*init)(void);
	void	(*close)(void);

	void	(*new)(struct nf_conntrack *ct);
	void	(*update)(struct nf_conntrack *ct);
	void	(*destroy)(struct nf_conntrack *ct);

	void	(*dump)(int fd, int type);
	void	(*flush)(void);
	void	(*commit)(struct nfct_handle *h, int fd);
	void	(*stats)(int fd);
	void	(*stats_ext)(int fd);
};

extern struct external_handler external_cache;
extern struct external_handler external_inject;

#endif