Revision 9607536d proto/rip/rip.c

View differences:

proto/rip/rip.c
218 218
  }
219 219
  n = net_get( p->table, b->network, ipa_mklen( b->netmask ));
220 220
  r = rte_get_temp(a);
221
  r->u.rip.metric = ntohl(b->metric) + rif->metric;
221
  r->u.rip.metric = ntohl(b->metric) + rif->patt->metric;
222 222
  if (r->u.rip.metric > P_CF->infinity) r->u.rip.metric = P_CF->infinity;
223 223
  r->u.rip.tag = ntohl(b->tag);
224 224
  r->net = n;

Also available in: Unified diff