From be61c4eb59b8df1aab496176d87bb2e1763f185e Mon Sep 17 00:00:00 2001 From: hasso Date: Sat, 27 Aug 2005 06:05:47 +0000 Subject: * zebra_rib.c, rib.h: Add distance and metric arguments to the rib_add_ipv6() function so that IPv6 routes in RIB can have correct metric. No IPv6 routing daemon uses distance yet though. * zserv.c, connected.c, kernel_socket.c, rt_netlink.c, rtread_proc.c,zserv.c: Pass metric and distance info to the rib_add_ipv6(). Forwardport from stable branch. --- zebra/rt_netlink.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zebra/rt_netlink.c') diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c index 3f22a6cc..62d166b2 100644 --- a/zebra/rt_netlink.c +++ b/zebra/rt_netlink.c @@ -793,7 +793,8 @@ netlink_routing_table (struct sockaddr_nl *snl, struct nlmsghdr *h) memcpy (&p.prefix, dest, 16); p.prefixlen = rtm->rtm_dst_len; - rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, flags, &p, gate, index, table); + rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, flags, &p, gate, index, table, + metric, 0); } #endif /* HAVE_IPV6 */ @@ -943,7 +944,7 @@ netlink_route_change (struct sockaddr_nl *snl, struct nlmsghdr *h) } if (h->nlmsg_type == RTM_NEWROUTE) - rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, 0); + rib_add_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, 0, 0, 0); else rib_delete_ipv6 (ZEBRA_ROUTE_KERNEL, 0, &p, gate, index, 0); } -- cgit v1.2.1