summaryrefslogtreecommitdiffstats
path: root/include/internal/types.h
blob: 790bf7a42873d025cd0c77c51031b5c5139c55f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * WARNING: Do *NOT* ever include this file, only for internal use!
 */
#ifndef _NFCT_TYPES_H_
#define _NFCT_TYPES_H_

/*
 * conntrack types
 */
typedef void (*set_attr)(struct nf_conntrack *ct, const void *value);
typedef const void *(*get_attr)(const struct nf_conntrack *ct);
typedef void (*copy_attr)(struct nf_conntrack *d, const struct nf_conntrack *o);
typedef void (*filter_attr)(struct nfct_filter *filter, const void *value);
typedef int (*getobjopt)(const struct nf_conntrack *ct);
typedef void (*setobjopt)(struct nf_conntrack *ct);

/*
 * expectation types
 */
typedef void (*set_exp_attr)(struct nf_expect *exp, const void *value);
typedef const void *(*get_exp_attr)(const struct nf_expect *exp);

#endif