summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-27 04:53:38 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-27 04:53:38 +0200
commite90be1577d672068878118fc61fab75e3028b56f (patch)
treec6b154f25da7ff9e6d81b7a4313599233f678cbd /src/fastd.h
parenta0e0e9898a7c1abeb4dbf6ba188a9bcaf523e003 (diff)
downloadfastd-e90be1577d672068878118fc61fab75e3028b56f.tar
fastd-e90be1577d672068878118fc61fab75e3028b56f.zip
Move tuntap handling out of poll.c
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 6fe0422..8a11a41 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -302,6 +302,7 @@ extern fastd_config_t conf; /**< The global configuration */
void fastd_send(const fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, fastd_buffer_t buffer, size_t stat_size);
void fastd_send_handshake(const fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, fastd_buffer_t buffer);
void fastd_send_all(fastd_peer_t *source_peer, fastd_buffer_t buffer);
+void fastd_send_data(fastd_buffer_t buffer);
void fastd_receive(fastd_socket_t *sock);
void fastd_handle_receive(fastd_peer_t *peer, fastd_buffer_t buffer);
@@ -316,7 +317,7 @@ void fastd_socket_error(fastd_socket_t *sock);
void fastd_resolve_peer(fastd_peer_t *peer, fastd_remote_t *remote);
void fastd_tuntap_open(void);
-fastd_buffer_t fastd_tuntap_read(void);
+void fastd_tuntap_handle(void);
void fastd_tuntap_write(fastd_buffer_t buffer);
void fastd_tuntap_close(void);