summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-10-16 18:33:51 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-10-16 18:33:51 +0200
commit118ebb9d65b44fb734aee3ebd31ecdaffd38c615 (patch)
treecfb4e9f8ad1364dbfe411e6c6dc6c5139b08016c /src/fastd.h
parent4c188ac86175422bc44e88e037b01acaba781cb7 (diff)
downloadfastd-118ebb9d65b44fb734aee3ebd31ecdaffd38c615.tar
fastd-118ebb9d65b44fb734aee3ebd31ecdaffd38c615.zip
Initiate handshake when a packet can't be sent because the local address is invalid
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 1fe639e..17ae0fa 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -327,9 +327,9 @@ struct fastd_string_stack {
};
-void fastd_send(fastd_context_t *ctx, const fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_buffer_t buffer, size_t stat_size);
+void fastd_send(fastd_context_t *ctx, 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_all(fastd_context_t *ctx, fastd_peer_t *source_peer, fastd_buffer_t buffer);
-void fastd_send_handshake(fastd_context_t *ctx, const fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_buffer_t buffer);
+void fastd_send_handshake(fastd_context_t *ctx, 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_receive(fastd_context_t *ctx, fastd_socket_t *sock);
void fastd_handle_receive(fastd_context_t *ctx, fastd_peer_t *peer, fastd_buffer_t buffer);