From 9d99a7699d7021a1c219d6553e037ac7ba4a5a37 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 21 Aug 2009 16:06:11 +0200 Subject: 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 --- include/fds.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/fds.h') 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 -- cgit v1.2.3