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/zserv.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'zebra/zserv.c') diff --git a/zebra/zserv.c b/zebra/zserv.c index eb126feb..872ddb85 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -999,9 +999,11 @@ zread_ipv6_add (struct zserv *client, u_short length) api.metric = 0; if (IN6_IS_ADDR_UNSPECIFIED (&nexthop)) - rib_add_ipv6 (api.type, api.flags, &p, NULL, ifindex, 0); + rib_add_ipv6 (api.type, api.flags, &p, NULL, ifindex, 0, api.metric, + api.distance); else - rib_add_ipv6 (api.type, api.flags, &p, &nexthop, ifindex, 0); + rib_add_ipv6 (api.type, api.flags, &p, &nexthop, ifindex, 0, api.metric, + api.distance); return 0; } -- cgit v1.2.1