diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-24 03:36:49 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-24 03:36:49 +0100 |
commit | 9ef4d441ad91ebcbc68bdae309122f128ed69f56 (patch) | |
tree | a3162fd43e77ce9c83eadf8ef4cfb92918df4615 /src/handshake.h | |
parent | 14a991a1ced945db09e53a1e6dd0a7b2a052cfba (diff) | |
download | fastd-9ef4d441ad91ebcbc68bdae309122f128ed69f56.tar fastd-9ef4d441ad91ebcbc68bdae309122f128ed69f56.zip |
Add support for defining the MTU per peer
Diffstat (limited to 'src/handshake.h')
-rw-r--r-- | src/handshake.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/handshake.h b/src/handshake.h index ccd1da5..997f955 100644 --- a/src/handshake.h +++ b/src/handshake.h @@ -100,9 +100,10 @@ struct fastd_handshake_buffer { fastd_handshake_buffer_t fastd_handshake_new_init(size_t tail_space); -fastd_handshake_buffer_t fastd_handshake_new_reply(uint8_t type, bool little_endian, const fastd_method_info_t *method, const fastd_string_stack_t *methods, size_t tail_space); +fastd_handshake_buffer_t fastd_handshake_new_reply(uint8_t type, bool little_endian, uint16_t mtu, const fastd_method_info_t *method, const fastd_string_stack_t *methods, size_t tail_space); void fastd_handshake_send_error(fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, const fastd_handshake_t *handshake, uint8_t reply_code, uint16_t error_detail); +bool fastd_handshake_check_mtu(fastd_socket_t *sock, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *remote_addr, fastd_peer_t *peer, const fastd_handshake_t *handshake); const fastd_method_info_t * fastd_handshake_get_method(const fastd_peer_t *peer, const fastd_handshake_t *handshake); void fastd_handshake_handle(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); |