diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2011-10-27 12:04:50 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-01-10 01:54:45 +0100 |
commit | 395ac42f5f1844834698f29032b101c2890b6772 (patch) | |
tree | f305b2a1bea37516875d9125fee768dba89075d8 /include | |
parent | 65be3d49b0f4350a227dedd70ac17c7c9cf6274e (diff) | |
download | conntrack-tools-395ac42f5f1844834698f29032b101c2890b6772.tar.gz conntrack-tools-395ac42f5f1844834698f29032b101c2890b6772.zip |
conntrackd: generalize external handlers to prepare expectation support
This patch contains cleanups to prepare the expectation support for
external handlers. Mostly renamings.
I have also updated the file headers to include Vyatta in the copyright
statement.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/external.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/include/external.h b/include/external.h index 6619967..eef0e42 100644 --- a/include/external.h +++ b/include/external.h @@ -7,15 +7,17 @@ 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); + struct { + void (*new)(struct nf_conntrack *ct); + void (*upd)(struct nf_conntrack *ct); + void (*del)(struct nf_conntrack *ct); - void (*dump)(int fd, int type); - void (*flush)(void); - int (*commit)(struct nfct_handle *h, int fd); - void (*stats)(int fd); - void (*stats_ext)(int fd); + void (*dump)(int fd, int type); + void (*flush)(void); + int (*commit)(struct nfct_handle *h, int fd); + void (*stats)(int fd); + void (*stats_ext)(int fd); + } ct; }; extern struct external_handler external_cache; |