diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-02-19 23:04:49 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-02-19 23:04:49 +0000 |
commit | 13f4c15f214dd807899c10ebdff74ab5148d650f (patch) | |
tree | 50bbeb5ef948e29b40fd2a2833f0b68189fd2a1f /include/conntrackd.h | |
parent | 426f53894b8ced42130425c196aea38d115e9e18 (diff) | |
download | conntrack-tools-13f4c15f214dd807899c10ebdff74ab5148d650f.tar.gz conntrack-tools-13f4c15f214dd807899c10ebdff74ab5148d650f.zip |
compose the file descriptor set at initialization stage to save some cycles
Diffstat (limited to 'include/conntrackd.h')
-rw-r--r-- | include/conntrackd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/conntrackd.h b/include/conntrackd.h index 47898e2..69c1303 100644 --- a/include/conntrackd.h +++ b/include/conntrackd.h @@ -105,6 +105,8 @@ struct ct_general_state { struct nfct_handle *event; /* event handler */ struct nfct_handle *dump; /* dump handler */ + struct fds *fds; + /* statistics */ uint64_t malformed; uint64_t bytes[NFCT_DIR_MAX]; @@ -151,7 +153,7 @@ extern struct ct_general_state st; struct ct_mode { int (*init)(void); - int (*add_fds_to_set)(fd_set *readfds); + int (*register_fds)(struct fds *fds); void (*run)(fd_set *readfds); int (*local)(int fd, int type, void *data); void (*kill)(void); |