]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Adjust the callback to meshlink_receive_cb_t
[meshlink] / src / route.c
index d999d11eaf5fa495b03900379a163f62dbfecce8..0eb39aafd7611e4edfa6aac05fc4afb899f8ae40 100644 (file)
@@ -75,7 +75,7 @@ void route(node_t *source,vpn_packet_t *packet) {
     if (owner == mesh->self ) {
     //TODO: implement sending received data from meshlink library to the application
     logger(DEBUG_TRAFFIC, LOG_WARNING, "I received a packet for me with payload: %s \n", packet->data + sizeof *hdr);
-    (recv_callback)(packet->data + sizeof *hdr);
+    (meshlink_receive_cb_t)(packet->data + sizeof *hdr);
     return;
     }