diff options
author | hasso <hasso> | 2005-08-27 06:19:39 +0000 |
---|---|---|
committer | hasso <hasso> | 2005-08-27 06:19:39 +0000 |
commit | 6cf18a8a4e9cd20d414113772dd8f816576f172c (patch) | |
tree | 7057eeba1b71a7b4e271fa6b2fdc9d4a080a4194 /ripngd/ripng_zebra.c | |
parent | 05ecff24d81162311a2f57e8d0207b99330a5754 (diff) | |
download | quagga-6cf18a8a4e9cd20d414113772dd8f816576f172c.tar.bz2 quagga-6cf18a8a4e9cd20d414113772dd8f816576f172c.tar.xz |
* 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.c | 6 |
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); } } |