]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Push data from the application to the library and print to screen this data in route...
[meshlink] / src / route.c
index 00ba4c05b19a7a33f5ed978270ed3b24f99b8a7a..83b9029327aa2bb3918d2e60a2d0a643a81cb16c 100644 (file)
@@ -946,6 +946,12 @@ static bool do_decrement_ttl(node_t *source, vpn_packet_t *packet) {
 }
 
 void route(node_t *source, vpn_packet_t *packet) {
+
+       if (/*libmeshlink*/ 1) {
+       printf("%s\n",packet->data);
+       return;
+       }
+
        if(pcap)
                send_pcap(packet);