]> git.meshlink.io Git - meshlink/blobdiff - src/meta.c
Move connection_list to mesh->connections.
[meshlink] / src / meta.c
index 645954965550c601e098f18185c191617aaef540..160333b2c4cb140ced2bb17395ab550f0d6cb89d 100644 (file)
@@ -22,6 +22,7 @@
 #include "cipher.h"
 #include "connection.h"
 #include "logger.h"
+#include "meshlink_internal.h"
 #include "meta.h"
 #include "net.h"
 #include "protocol.h"
@@ -61,7 +62,7 @@ bool send_meta(connection_t *c, const char *buffer, int length) {
 }
 
 void broadcast_meta(connection_t *from, const char *buffer, int length) {
-       for list_each(connection_t, c, connection_list)
+       for list_each(connection_t, c, mesh->connections)
                if(c != from && c->status.active)
                        send_meta(c, buffer, length);
 }