]> git.meshlink.io Git - meshlink/blobdiff - src/net_packet.c
Move connection_list to mesh->connections.
[meshlink] / src / net_packet.c
index 29f4fb8e59aebfcd900c99b5230db87335c2913e..c60d5a531ae87bb22d8471bd8e6c608802bf7a37 100644 (file)
@@ -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);
 }