Revision b7c48981 nest/rt-table.c

View differences:

nest/rt-table.c
1486 1486
    return ea->u.data;
1487 1487

  
1488 1488
  rta *a = rt->attrs;
1489

  
1490
#ifdef CONFIG_OSPF
1489 1491
  if ((a->source == RTS_OSPF) ||
1490 1492
      (a->source == RTS_OSPF_IA) ||
1491 1493
      (a->source == RTS_OSPF_EXT1))
1492 1494
    return rt->u.ospf.metric1;
1495
#endif
1493 1496

  
1497
#ifdef CONFIG_RIP
1494 1498
  if (a->source == RTS_RIP)
1495 1499
    return rt->u.rip.metric;
1500
#endif
1496 1501

  
1497 1502
  /* Device routes */
1498 1503
  if ((a->dest != RTD_ROUTER) && (a->dest != RTD_MULTIPATH))

Also available in: Unified diff