projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfa738d
)
Don't echo broadcast packets back when Broadcast = direct.
author
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 8 Aug 2013 15:40:43 +0000
(17:40 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Thu, 8 Aug 2013 15:40:43 +0000
(17:40 +0200)
src/net_packet.c
patch
|
blob
|
history
diff --git
a/src/net_packet.c
b/src/net_packet.c
index 054679e9aa0c75bca437e96443336a21d7ee53e4..81d0572f9c4a1e43947a8472343fbb008ce40e60 100644
(file)
--- 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;