diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-27 22:44:56 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-05-27 22:44:56 +0200 |
commit | 64c79271c75987d94975cc3855617898b332b5a0 (patch) | |
tree | ccb23470412c87e6995145d5d71d54ecbd0b871d /src/receive.c | |
parent | adb7453fae67c777974e1d4c1a5f80f2378c61c3 (diff) | |
download | fastd-64c79271c75987d94975cc3855617898b332b5a0.tar fastd-64c79271c75987d94975cc3855617898b332b5a0.zip |
A bit more fastd.h cleanup
Diffstat (limited to 'src/receive.c')
-rw-r--r-- | src/receive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/receive.c b/src/receive.c index 6009030..3813d7f 100644 --- a/src/receive.c +++ b/src/receive.c @@ -181,7 +181,7 @@ static inline void handle_socket_receive(fastd_socket_t *sock, const fastd_peer_ /** Reads a packet from a socket */ void fastd_receive(fastd_socket_t *sock) { - size_t max_len = fastd_max_outer_packet(); + size_t max_len = 1 + fastd_max_payload() + conf.max_overhead; fastd_buffer_t buffer = fastd_buffer_alloc(max_len, conf.min_decrypt_head_space, conf.min_decrypt_tail_space); fastd_peer_address_t local_addr; fastd_peer_address_t recvaddr; |