From: Guus Sliepen Date: Thu, 8 Aug 2013 15:40:43 +0000 (+0200) Subject: Don't echo broadcast packets back when Broadcast = direct. X-Git-Tag: release-1.0.22~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a84e449861eadee9361b7e0084379f5033894aab;p=oweals%2Ftinc.git Don't echo broadcast packets back when Broadcast = direct. --- diff --git a/src/net_packet.c b/src/net_packet.c index 054679e..81d0572 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -650,7 +650,7 @@ void broadcast_packet(const node_t *from, vpn_packet_t *packet) { for(node = node_udp_tree->head; node; node = node->next) { n = node->data; - 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;