From: Guus Sliepen Date: Tue, 16 Nov 2004 19:02:54 +0000 (+0000) Subject: Make sure broadcast packet reach the local network interface. X-Git-Tag: release-1.0.4~16 X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=0077cfaae112b63d6af6aa1e5d079cebdde84b74;hp=79c48cfafd75dfc86a382f6454a9f009d3c099b6 Make sure broadcast packet reach the local network interface. --- diff --git a/src/net_packet.c b/src/net_packet.c index bb50aa2d..ed49b0b2 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -457,6 +457,12 @@ void broadcast_packet(const node_t *from, vpn_packet_t *packet) ifdebug(TRAFFIC) logger(LOG_INFO, _("Broadcasting packet of %d bytes from %s (%s)"), packet->len, from->name, from->hostname); + if(from != myself) { + if(overwrite_mac) + memcpy(packet->data, mymac.x, ETH_ALEN); + write_packet(packet); + } + for(node = connection_tree->head; node; node = node->next) { c = node->data;