Revision 3013fc57 sysdep/linux/netlink.c

View differences:

sysdep/linux/netlink.c
1666 1666
    ra->nh.labels = labels;
1667 1667
#endif
1668 1668

  
1669
  rte *e = rte_get_temp(ra);
1670
  e->net = net;
1671
  e->u.krt.src = src;
1672
  e->u.krt.proto = i->rtm_protocol;
1673
  e->u.krt.seen = 0;
1674
  e->u.krt.best = 0;
1675
  e->u.krt.metric = 0;
1676

  
1677 1669
  if (i->rtm_scope != def_scope)
1678 1670
    {
1679 1671
      ea_list *ea = lp_alloc(s->pool, sizeof(ea_list) + sizeof(eattr));
......
1687 1679
      ea->attrs[0].u.data = i->rtm_scope;
1688 1680
    }
1689 1681

  
1690
  if (a[RTA_PRIORITY])
1691
    e->u.krt.metric = rta_get_u32(a[RTA_PRIORITY]);
1692

  
1693 1682
  if (a[RTA_PREFSRC])
1694 1683
    {
1695 1684
      ip_addr ps = rta_get_ipa(a[RTA_PREFSRC]);

Also available in: Unified diff