diff options
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h index f69f2f8..19660db 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -41,6 +41,7 @@ #include <errno.h> #include <fcntl.h> +#include <pthread.h> #include <poll.h> #include <stdarg.h> #include <stdio.h> @@ -258,6 +259,8 @@ struct fastd_context { int async_rfd; /**< The read side of the pipe used to send data from other thread to the main thread */ int async_wfd; /**< The write side of the pipe used to send data from other thread to the main thread */ + pthread_attr_t detached_thread; /**< pthread_attr_t for creating detached threads */ + int tunfd; /**< The file descriptor of the tunnel interface */ size_t n_socks; /**< The number of sockets in socks */ |