Author: marek Date: 2009-09-11 17:56:49 +0000 (Fri, 11 Sep 2009) New Revision: 1433
Modified: trunk/batman-adv-kernelland/send.c Log: [batman-adv] check whether we have a valid "previous ttl" to avoid a TTL of 255
Modified: trunk/batman-adv-kernelland/send.c =================================================================== --- trunk/batman-adv-kernelland/send.c 2009-09-10 16:31:08 UTC (rev 1432) +++ trunk/batman-adv-kernelland/send.c 2009-09-11 17:56:49 UTC (rev 1433) @@ -301,7 +301,9 @@ /* rebroadcast ogm of best ranking neighbor as is */ if (!compare_orig(orig_node->router->addr, ethhdr->h_source)) { batman_packet->tq = orig_node->router->tq_avg; - batman_packet->ttl = orig_node->router->last_ttl - 1; + + if (orig_node->router->last_ttl) + batman_packet->ttl = orig_node->router->last_ttl - 1; }
tq_avg = orig_node->router->tq_avg;