From f6e36cf6d78ce8c5bed2e6d698928a89a9fbcc6f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 22 Mar 2015 03:10:55 +0100 Subject: First work towards multi-interface support --- src/poll.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/poll.c') 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: -- cgit v1.2.3