Revision ce1da96e proto/rip/rip.c

View differences:

proto/rip/rip.c
535 535
}
536 536

  
537 537
static void
538
rip_get_route_info(rte *rte, byte *buf)
538
rip_get_route_info(rte *rte, byte *buf, ea_list *attrs)
539 539
{
540
  buf += bsprintf(buf, " (%d/%d)", rte->pref, rte->u.rip.metric );
541
  bsprintf(buf, " t%04x", rte->u.rip.tag );
540
  eattr *metric = ea_find(attrs, EA_RIP_METRIC);
541
  eattr *tag = ea_find(attrs, EA_RIP_TAG);
542

  
543
  buf += bsprintf(buf, " (%d/%d)", rte->pref, metric ? metric->u.data : 0);
544
  if (tag && tag->u.data)
545
    bsprintf(buf, " t%04x", tag->u.data);
542 546
}
543 547

  
544 548
static int

Also available in: Unified diff