The following commit has been merged in the master branch: commit 18fe964e9e9be85583c157c05eb9d4fbf4d00894 Author: Marek Lindner lindner_marek@yahoo.de Date: Wed Aug 30 22:37:37 2006 +0200
prevent routing loop II
diff --git a/batman.c b/batman.c index b27d675..a9779e1 100755 --- a/batman.c +++ b/batman.c @@ -596,7 +596,7 @@ void schedule_forward_packet( struct packet *in, int unidirectional, struct ori if (in->ttl <= 1) { if (debug_level >= 2) output("ttl exceeded \n"); - } else if ( orig_node->router != neigh ) { + } else if ( ( orig_node->router != neigh ) && ( orig_node->router != 0 ) ) { if (debug_level >= 2) output("not my best neighbour\n"); } else {