Perhaps you can look at the other uses of that bit,
like where it is set (if ever....) to get a better
idea of what the OP was thinking.
MS
funofnet Funofnet wrote:
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.
------------------------------------------------------------------------
Envoyé avec Yahoo! Mail
<http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52420/*http://fr.docs.yahoo.com/mail/overview/index.html>.
La boite email la plus appreciée au monde.
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help