[Olsr-dev] [patch] hop count metric problems : bug solved
Dario Borriello
(spam-protected)
Wed Dec 12 12:47:09 CET 2007
hannes,
I' ve made these changes in tc_set.c in the function olsr_tc_update_mprs:
//dario
//if I don't use LQ I don't have to update link_quality, inverse_link_quality and olsr_calc_tc_edge_entry_etx
if (olsr_cnf->lq_level> 0)
tc_edge->link_quality = mprs->neigh_link_quality;
if (olsr_etx_significant_change(tc_edge->inverse_link_quality,
mprs->link_quality)) {
if (msg->hop_count <= olsr_cnf->lq_dlimit)
edge_change = 1;
}
//dario
if (olsr_cnf->lq_level> 0)
tc_edge->inverse_link_quality = mprs->link_quality;
/*
* Update the etx.
*/
//dario
if (olsr_cnf->lq_level> 0)
olsr_calc_tc_edge_entry_etx(tc_edge);
Now it seems to work correctly....
_________________________________________________________________
Ti piace giocare con le lettere? Prova ABCLive!
http://messengergiochi.it.msn.com/
More information about the Olsr-dev
mailing list