X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Froute.c;h=cffb7d25ab491cf6c31590e6570a826de75afc1c;hb=7972a780945299b992643838e61426323b161cfe;hp=317d120f568f9209d8ca28c7ae82c237af110e62;hpb=67103e5e08616983a9b81b88695c3c4cc38cc9ab;p=meshlink diff --git a/src/route.c b/src/route.c index 317d120f..cffb7d25 100644 --- a/src/route.c +++ b/src/route.c @@ -66,6 +66,7 @@ void route(node_t *source,vpn_packet_t *packet) { node_t* via = NULL; tincpackethdr* hdr = (tincpackethdr*)packet->data; owner = lookup_node(hdr->destination); + logger(DEBUG_TRAFFIC, LOG_WARNING, "Routing packet from: %s . To: %s \n",hdr->source,hdr->destination); //Check Lenght if(!checklength(source, packet, (sizeof(tincpackethdr)))) @@ -74,6 +75,7 @@ void route(node_t *source,vpn_packet_t *packet) { if (owner == NULL) { //Lookup failed logger(DEBUG_TRAFFIC, LOG_WARNING, "Cant lookup the owner of a packet in the route() function. This should never happen \n"); + logger(DEBUG_TRAFFIC, LOG_WARNING, "Destination was: %s \n",hdr->destination); return; }