summaryrefslogtreecommitdiff
path: root/include/fds.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-08-21 16:06:11 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-08-21 16:06:11 +0200
commit9d99a7699d7021a1c219d6553e037ac7ba4a5a37 (patch)
tree54c7c4383e3c2e627ea7736e3345d558dcdf23b9 /include/fds.h
parent58411110894c0a9e6a1a1ec9dbdf2fbe2ef3da00 (diff)
downloadconntrack-tools-9d99a7699d7021a1c219d6553e037ac7ba4a5a37.tar.gz
conntrack-tools-9d99a7699d7021a1c219d6553e037ac7ba4a5a37.zip
conntrackd: allow to remove file descriptors from set
With this patch, we can remove file descriptors dinamically from our own file descriptor pool. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/fds.h')
-rw-r--r--include/fds.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/fds.h b/include/fds.h
index 019d3f9..f3728d7 100644
--- a/include/fds.h
+++ b/include/fds.h
@@ -1,13 +1,22 @@
#ifndef _FDS_H_
#define _FDS_H_
+#include "linux_list.h"
+
struct fds {
int maxfd;
fd_set readfds;
+ struct list_head list;
+};
+
+struct fds_item {
+ struct list_head head;
+ int fd;
};
struct fds *create_fds(void);
void destroy_fds(struct fds *);
int register_fd(int fd, struct fds *fds);
+int unregister_fd(int fd, struct fds *fds);
#endif