The following commit has been merged in the master branch: commit afa9374af712644c539a4637d4bbb14d1edbca99 Author: Axel Neumann neumann@cgws.de Date: Wed Jan 24 08:34:13 2007 +0100
orig_node->last_aware was never updated, causing remove of routes to multihop neighbors. now is!
diff --git a/batman.c b/batman.c index 99d3913..e375bb0 100644 --- a/batman.c +++ b/batman.c @@ -1232,11 +1232,12 @@ int batman()
} else {
- orig_neigh_node = get_orig_node( neigh ); - orig_node = get_orig_node( ((struct packet *)&in)->orig ); + orig_node->last_aware = get_time(); + + orig_neigh_node = get_orig_node( neigh ); + orig_neigh_node->last_aware = get_time(); //TBD: depending on context of last_aware this may be removed
- orig_neigh_node->last_aware = get_time();
is_duplicate = isDuplicate( ((struct packet *)&in)->orig, ((struct packet *)&in)->seqno ); is_bidirectional = isBidirectionalNeigh( orig_neigh_node, if_incoming );