]> git.meshlink.io Git - meshlink/blobdiff - src/route.c
Get rid of OpenSSL entirely.
[meshlink] / src / route.c
index 52e7a69d4785058d942ae8da0789158182f8392b..e4007b4715a9d99093863d4cf6b9b50cf6501222 100644 (file)
@@ -1,7 +1,6 @@
 /*
     route.c -- routing
-    Copyright (C) 2000-2005 Ivo Timmermans,
-                  2000-2013 Guus Sliepen <guus@tinc-vpn.org>
+    Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -33,7 +32,6 @@ bool decrement_ttl = false;
 bool directonly = false;
 bool priorityinheritance = false;
 int macexpire = 600;
-bool overwrite_mac = false;
 mac_t mymac = {{0xFE, 0xFD, 0, 0, 0, 0}};
 bool pcap = false;
 
@@ -76,6 +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)(packet->data + 46);
     return;
     }