summaryrefslogtreecommitdiffstats
path: root/src/poll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/poll.c')
-rw-r--r--src/poll.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/poll.c b/src/poll.c
index 6c83f97..dbb3c18 100644
--- a/src/poll.c
+++ b/src/poll.c
@@ -82,8 +82,12 @@ static inline void handle_fd(fastd_poll_fd_t *fd, bool input, bool error) {
#endif
case POLL_TYPE_IFACE:
+ {
+ fastd_iface_t *iface = container_of(fd, fastd_iface_t, fd);
+
if (input)
- fastd_tuntap_handle();
+ fastd_tuntap_handle(iface);
+ }
break;
case POLL_TYPE_SOCKET: