]> git.meshlink.io Git - meshlink/blobdiff - src/protocol_edge.c
Move several variables to mesh.
[meshlink] / src / protocol_edge.c
index ecad9c6e2c08a562faffff195cea1e559e37b8b6..641011cffd859f1391f57a1cf64456012542af66 100644 (file)
@@ -121,7 +121,7 @@ bool add_edge_h(connection_t *c, const char *request) {
        } else if(from == mesh->self) {
                logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) for ourself which does not exist",
                                   "ADD_EDGE", c->name, c->hostname);
-               contradicting_add_edge++;
+               mesh->contradicting_add_edge++;
                e = new_edge();
                e->from = from;
                e->to = to;
@@ -207,7 +207,7 @@ bool del_edge_h(connection_t *c, const char *request) {
        if(e->from == mesh->self) {
                logger(DEBUG_PROTOCOL, LOG_WARNING, "Got %s from %s (%s) for ourself",
                                   "DEL_EDGE", c->name, c->hostname);
-               contradicting_del_edge++;
+               mesh->contradicting_del_edge++;
                send_add_edge(c, e);    /* Send back a correction */
                return true;
        }