Make sure broadcast packet reach the local network interface.
This commit is contained in:
parent
79c48cfafd
commit
0077cfaae1
1 changed files with 6 additions and 0 deletions
|
@ -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)"),
|
ifdebug(TRAFFIC) logger(LOG_INFO, _("Broadcasting packet of %d bytes from %s (%s)"),
|
||||||
packet->len, from->name, from->hostname);
|
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) {
|
for(node = connection_tree->head; node; node = node->next) {
|
||||||
c = node->data;
|
c = node->data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue