]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Data is correctly passed from the library to the application the callback
[meshlink] / src / route.c
index 539796dff9ac2cd89ae3c2aa90a23fd3959369ee..e4007b4715a9d99093863d4cf6b9b50cf6501222 100644 (file)
@@ -74,7 +74,7 @@ void route(node_t *source,vpn_packet_t *packet) {
     if (owner == myself ) {
     //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 + 46);
-    (recv_callback)(NULL);
+    (recv_callback)(packet->data + 46);
     return;
     }