Lines Matching refs:oldmetric
216 unsigned oldmetric;
219 oldmetric = route_metric(route);
257 route_lost(src, oldmetric);
612 int oldmetric = route_metric(route);
618 if(oldmetric < INFINITY)
619 route_changed(route, route->src, oldmetric);
629 if(route_metric(route) != oldmetric)
630 route_changed(route, route->src, oldmetric);
714 unsigned short oldmetric;
718 oldmetric = route_metric(route);
745 route_changed(route, oldsrc, oldmetric);
747 route_lost(oldsrc, oldmetric);
872 unsigned short oldmetric = route_metric(r);
874 if(oldmetric != INFINITY)
875 route_changed(r, r->src, oldmetric);
886 unsigned oldmetric)
897 newmetric >= oldmetric ? newmetric - oldmetric : oldmetric - newmetric;
899 if(route->src != oldsrc || (oldmetric < INFINITY && newmetric >= INFINITY))
903 else if(newmetric > oldmetric && oldmetric < 6 * 256 && diff >= 512)
910 else if(oldmetric >= INFINITY && newmetric < INFINITY)
913 else if(newmetric < oldmetric && diff < 1024)
928 if(oldmetric < INFINITY) {
929 if(newmetric >= oldmetric + 512) {
935 } else if(newmetric >= oldmetric + 288) {
945 struct source *oldsrc, unsigned short oldmetric)
948 if(route_metric(route) > oldmetric) {
959 send_triggered_update(route, oldsrc, oldmetric);
969 route_lost(struct source *src, unsigned oldmetric)
975 } else if(oldmetric < INFINITY) {