diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2014-04-24 17:30:26 +0200 |
|---|---|---|
| committer | Christian Franke <chris@opensourcerouting.org> | 2017-01-30 13:47:04 +0100 |
| commit | d75f3b00e74de3350202848d62b2bfbcdd1c0dae (patch) | |
| tree | 0c20a539e4f15602fa3d51ea58f464b6e8661df2 /ospf6d/ospf6_zebra.c | |
| parent | 3c7c91d0bd04d4db0a47db5717d36671ecc96a1b (diff) | |
lib: send ZAPI IPv6 source prefix
This introduces ZAPI_MESSAGE_SRCPFX, and if set adds a source prefix
field to ZAPI IPv6 route messages sent from daemons to zebra. The
function calls all have a new prefix_ipv6 * argument specifying the
source, or NULL. All daemons currently supply NULL.
Zebra support for processing the field was added in the previous patch,
however, zebra does not do anything useful with the value yet.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_zebra.c')
| -rw-r--r-- | ospf6d/ospf6_zebra.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index a5303fb1b8..c20311e92f 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -463,9 +463,9 @@ ospf6_zebra_route_update (int type, struct ospf6_route *request) api.distance = ospf6_distance_apply (dest, request); if (type == REM) - ret = zapi_ipv6_route (ZEBRA_IPV6_ROUTE_DELETE, zclient, dest, &api); + ret = zapi_ipv6_route (ZEBRA_IPV6_ROUTE_DELETE, zclient, dest, NULL, &api); else - ret = zapi_ipv6_route (ZEBRA_IPV6_ROUTE_ADD, zclient, dest, &api); + ret = zapi_ipv6_route (ZEBRA_IPV6_ROUTE_ADD, zclient, dest, NULL, &api); if (ret < 0) zlog_err ("zapi_ipv6_route() %s failed: %s", @@ -527,7 +527,7 @@ ospf6_zebra_add_discard (struct ospf6_route *request) dest = (struct prefix_ipv6 *) &request->prefix; - zapi_ipv6_route (ZEBRA_IPV6_ROUTE_ADD, zclient, dest, &api); + zapi_ipv6_route (ZEBRA_IPV6_ROUTE_ADD, zclient, dest, NULL, &api); if (IS_OSPF6_DEBUG_ZEBRA (SEND)) zlog_debug ("Zebra: Route add discard %s/%d", @@ -572,7 +572,7 @@ ospf6_zebra_delete_discard (struct ospf6_route *request) dest = (struct prefix_ipv6 *) &request->prefix; - zapi_ipv6_route (ZEBRA_IPV6_ROUTE_DELETE, zclient, dest, &api); + zapi_ipv6_route (ZEBRA_IPV6_ROUTE_DELETE, zclient, dest, NULL, &api); if (IS_OSPF6_DEBUG_ZEBRA (SEND)) zlog_debug ("Zebra: Route delete discard %s/%d", |
