Don't echo broadcast packets back when Broadcast = direct.
This commit is contained in:
parent
81c7120320
commit
de8e6bf452
1 changed files with 1 additions and 1 deletions
|
@ -961,7 +961,7 @@ void broadcast_packet(const node_t *from, vpn_packet_t *packet) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
for splay_each(node_t, n, node_tree)
|
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);
|
send_packet(n, packet);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue