Subject: [manet] problems in OLSR patch of glomosim

From: Adnane asmaa <[email-masked]>
Date: Sun, 27 May 2007 11:14:55 +0200

Hi
i use the OLSR patch of glomosim, and i found some problems in the 
calculation of two hop neighbor set,
if the 2 hop neighbor exists in the two hop neighbor set, node will not 
verify if it is advertised by the same 1 hop neighbor , SO
it will not be added even if it is reachable via another 1-hop neighbor.

the solution is to add this condition

*two_tmp->oneHopNeighborPtr->oneHopNeighborAddr  ==originatorAddress
*
in int RoutingOlsrPopulatingTwoHopNeighborSet(GlomoNode *node,
                        ToPopulatingTwoHopNeighborSet
                        *toTwoNeiSet,
                        NODE_ADDR originatorAddress,
                        unsigned int originatorWillingness)
....

two_tmp = olsr->TwoHopNeighborSet;
      while(two_tmp != NULL){
        if(two_tmp->twoHopNeighborAddr == tmp->nodeAddr &&* 
two_tmp->oneHopNeighborPtr->oneHopNeighborAddr  ==originatorAddress*){
          break;
        }
        two_prev = two_tmp;
        two_tmp = two_tmp->next;
      }
........

There is also a problem with the mpr selection, for example: a node can 
select 2 mpr even if one provide reachability to all two hop neighbors ???

Asmaa

_______________________________________________
manet mailing list
[email-masked]
https://www1.ietf.org/mailman/listinfo/manet