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

struct nlnetwork;
struct us_conntrack;

struct sync_mode {
	int internal_cache_flags;
	int external_cache_flags;
	struct cache_extra *internal_cache_extra;
	struct cache_extra *external_cache_extra;

	int  (*init)(void);
	void (*kill)(void);
	int  (*local)(int fd, int type, void *data);
	int  (*pre_recv)(const struct nlnetwork *net);
	void (*post_send)(const struct nlnetwork *net, struct us_conntrack *u);
};

extern struct sync_mode notrack;
extern struct sync_mode nack;

#endif