diff options
author | hasso <hasso> | 2005-08-27 06:05:47 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-08-27 06:05:47 +0000 |
commit | be61c4eb59b8df1aab496176d87bb2e1763f185e (patch) | |
tree | 063e8baa7cd4a863e72d246d7c14f14842cbb604 /zebra/zserv.c | |
parent | b7395791a31f7b734094d032998ab632136f36f1 (diff) |
* 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.
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r-- | zebra/zserv.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; } |