From de8e6bf452227094a8aadd32dd5ea0d94d4b5db9 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Thu, 8 Aug 2013 17:40:15 +0200 Subject: [PATCH] Don't echo broadcast packets back when Broadcast = direct. --- src/net_packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_packet.c b/src/net_packet.c index 6f7a3a1..f79c9a7 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -961,7 +961,7 @@ void broadcast_packet(const node_t *from, vpn_packet_t *packet) { break; for splay_each(node_t, n, node_tree) - if(n->status.reachable && ((n->via == myself && n->nexthop == n) || n->via == n)) + if(n->status.reachable && n != myself && ((n->via == myself && n->nexthop == n) || n->via == n)) send_packet(n, packet); break; -- 2.25.1