diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-06 17:43:40 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-06 17:43:40 +0100 |
commit | ba2f8458ecfa0827e09a1c40c9e29868239fafa1 (patch) | |
tree | 1e9446c0b3dd93a570af2a2a9fec678ca14ab05d /include/conntrackd.h | |
parent | c3ef4d9b32ca653571f0976f73aaa99218a36db0 (diff) | |
download | conntrack-tools-ba2f8458ecfa0827e09a1c40c9e29868239fafa1.tar.gz conntrack-tools-ba2f8458ecfa0827e09a1c40c9e29868239fafa1.zip |
src: re-work polling strategy
This patch improves the polling support included in 0.9.10. The
polling now consists of getting the state table, wait for PollSecs,
then purge obsolete entries, and so on.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/conntrackd.h')
-rw-r--r-- | include/conntrackd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/conntrackd.h b/include/conntrackd.h index 3e10a2f..34c7629 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -114,7 +114,11 @@ struct ct_general_state { struct nfct_handle *dump; /* dump handler */ struct nfct_handle *request; /* request handler */ struct nfct_handle *resync; /* resync handler */ + struct nfct_handle *get; /* get handler */ + int get_retval; /* hackish */ + struct alarm_block resync_alarm; + struct alarm_block polling_alarm; struct fds *fds; |