]> git.meshlink.io Git - meshlink/commitdiff
Don't echo broadcast packets back when Broadcast = direct.
authorGuus Sliepen <guus@tinc-vpn.org>
Thu, 8 Aug 2013 15:40:15 +0000 (17:40 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Thu, 8 Aug 2013 15:40:15 +0000 (17:40 +0200)
src/net_packet.c

index 6f7a3a101b7d5182c89998ab886b841d017616ad..f79c9a75ac7e6795a70a1abe64fc42eb2886b870 100644 (file)
@@ -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;