X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet_packet.c;h=c60d5a531ae87bb22d8471bd8e6c608802bf7a37;hb=4ea5d218c5c8e5739071bc6e57cf8404db5323ef;hp=7457b3bd76c1b9caa12d37d2879d34cf17ca9cdb;hpb=1e08f518b26db292ad81ce44fc0df06f4df3a869;p=meshlink diff --git a/src/net_packet.c b/src/net_packet.c index 7457b3bd..c60d5a53 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -592,7 +592,7 @@ void broadcast_packet(const node_t *from, vpn_packet_t *packet) { logger(DEBUG_TRAFFIC, LOG_INFO, "Broadcasting packet of %d bytes from %s (%s)", packet->len, from->name, from->hostname); - for list_each(connection_t, c, connection_list) + for list_each(connection_t, c, mesh->connections) if(c->status.active && c->status.mst && c != from->nexthop->connection) send_packet(c->node, packet); } @@ -602,7 +602,7 @@ static node_t *try_harder(const sockaddr_t *from, const vpn_packet_t *pkt) { bool hard = false; static time_t last_hard_try = 0; - for splay_each(edge_t, e, edge_weight_tree) { + for splay_each(edge_t, e, mesh->edges) { if(!e->to->status.reachable || e->to == mesh->self) continue;