Hi,
Thank you very much Mr Eric Keller,
May be my question was not clear.
I am trying to understand surge application so I started with MultiHopLEPSM.nc 
module.
I remarqued that in any neighbourhood table manipulation I found an instruction 
with flag (which I didn't understand its utility)
Exemple1:

  void updateTable() {
    TableEntry *pNbr;
    uint8_t i = 0;
    gwEstTicks++;
    gwEstTicks %= ESTIMATE_TO_ROUTE_RATIO;
    for(i = 0; i < ROUTE_TABLE_SIZE; i++) {
      pNbr = &NeighborTbl[i];
      if (pNbr->flags & NBRFLAG_VALID) { ///*     I don't understant why we 
verify that???  *///
        if (gwEstTicks == 0) 
          updateEst(pNbr);
      }
    }
  } 

Exemple 2:
  void chooseParent() {
    TableEntry *pNbr;
    uint32_t ulNbrLinkCost = (uint32_t) -1;
    uint32_t ulMinLinkCost = (uint32_t) -1;
    TableEntry* pNewParent = NULL;
    uint8_t bNewHopCount = ROUTE_INVALID;
    uint8_t i;
    if (TOS_LOCAL_ADDRESS == BASE_STATION_ADDRESS) return;
    for (i = 0;i < ROUTE_TABLE_SIZE;i++) {
      pNbr = &NeighborTbl[i];
      if (!(pNbr->flags & NBRFLAG_VALID)) continue;// the first step is 
verifying that  Why ??????
........
........
........

}
I am really very thankful.


      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. La boite email la plus appreciƩe au monde. 
http://mail.yahoo.fr
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to