From 6c659ee5fafea64fef403bf0343bbeda45225560 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 20 Mar 2014 04:55:55 +0100 Subject: Flood unicasts for unknown addresses --- src/fastd.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fastd.c b/src/fastd.c index c54b5b8..d082136 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -502,10 +502,8 @@ static inline bool handle_tun_tap(fastd_context_t *ctx, fastd_buffer_t buffer) { fastd_peer_t *peer = fastd_peer_find_by_eth_addr(ctx, dest_addr); - if (!peer || !fastd_peer_is_established(peer)) { - fastd_buffer_free(buffer); - return true; - } + if (!peer || !fastd_peer_is_established(peer)) + return false; ctx->conf->protocol->send(ctx, peer, buffer); return true; -- cgit v1.2.3