[Olsr-dev] [patch] hop count metric problems : bug solved
Hannes Gredler
(spam-protected)
Wed Dec 12 13:19:47 CET 2007
dario,
can you pls send a unified diff (preferably with function names).
e.g. my .cvsrc looks like this.
(spam-protected) ~ $ cat .cvsrc
diff -u -p
this will make things much easier for us to review.
/hannes
Dario Borriello wrote:
> 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