summaryrefslogtreecommitdiff
path: root/ripngd/ripng_zebra.c
diff options
context:
space:
mode:
authorhasso <hasso>2005-08-27 06:19:39 +0000
committerhasso <hasso>2005-08-27 06:19:39 +0000
commitdeba35508e28a3861bb182218bb51af6769b2581 (patch)
tree04613ed5ea108b58fcc83bf6abd403ed6b841f2f /ripngd/ripng_zebra.c
parentbe61c4eb59b8df1aab496176d87bb2e1763f185e (diff)
* ripng_zebra.c, ripngd.[ch]: Pass metric info to the zebra daemon.
Forwardport from stable branch.
Diffstat (limited to 'ripngd/ripng_zebra.c')
-rw-r--r--ripngd/ripng_zebra.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ripngd/ripng_zebra.c b/ripngd/ripng_zebra.c
index 51e73a01..7744fd55 100644
--- a/ripngd/ripng_zebra.c
+++ b/ripngd/ripng_zebra.c
@@ -44,7 +44,7 @@ int ripng_interface_address_delete (int, struct zclient *, zebra_size_t);
void
ripng_zebra_ipv6_add (struct prefix_ipv6 *p, struct in6_addr *nexthop,
- unsigned int ifindex)
+ unsigned int ifindex, u_char metric)
{
struct zapi_ipv6 api;
@@ -59,7 +59,9 @@ ripng_zebra_ipv6_add (struct prefix_ipv6 *p, struct in6_addr *nexthop,
SET_FLAG (api.message, ZAPI_MESSAGE_IFINDEX);
api.ifindex_num = 1;
api.ifindex = &ifindex;
-
+ SET_FLAG (api.message, ZAPI_MESSAGE_METRIC);
+ api.metric = metric;
+
zapi_ipv6_route (ZEBRA_IPV6_ROUTE_ADD, zclient, p, &api);
}
}