diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-20 02:16:44 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-20 02:16:44 +0200 |
commit | 8c705b9cd4c7866227f09af2a859744e47602ba4 (patch) | |
tree | 9b75234454e0611c484265698011b5df832d893c /src/tuntap.c | |
parent | 0bf9268453d3af82bbd1257da547b1dd8f225ba2 (diff) | |
download | fastd-8c705b9cd4c7866227f09af2a859744e47602ba4.tar fastd-8c705b9cd4c7866227f09af2a859744e47602ba4.zip |
Minimize poll interface to simplify implementation of alternative implementations
Diffstat (limited to 'src/tuntap.c')
-rw-r--r-- | src/tuntap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tuntap.c b/src/tuntap.c index d638611..fd81c2a 100644 --- a/src/tuntap.c +++ b/src/tuntap.c @@ -102,7 +102,7 @@ void fastd_tuntap_open(fastd_context_t *ctx) { if (close(ctl_sock)) pr_error_errno(ctx, "close"); - fastd_poll_set_fd_tuntap(ctx, ctx->tunfd); + fastd_poll_set_fd_tuntap(ctx); pr_debug(ctx, "tun/tap device initialized."); } @@ -204,7 +204,7 @@ void fastd_tuntap_open(fastd_context_t *ctx) { exit_bug(ctx, "invalid mode"); } - fastd_poll_set_fd_tuntap(ctx, ctx->tunfd); + fastd_poll_set_fd_tuntap(ctx); pr_debug(ctx, "tun/tap device initialized."); } @@ -273,7 +273,7 @@ void fastd_tuntap_open(fastd_context_t *ctx) { exit_bug(ctx, "invalid mode"); } - fastd_poll_set_fd_tuntap(ctx, ctx->tunfd); + fastd_poll_set_fd_tuntap(ctx); pr_debug(ctx, "tun device initialized."); } |