From: Donald Sharp Date: Mon, 27 Sep 2021 12:23:41 +0000 (-0400) Subject: ospf6d: Make ospfv3 use normal address resolution instead of import route X-Git-Tag: base_8.2~340^2~8 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ad5c8f67a8aa57d681c4df337dbbfe895529c080;p=matthieu%2Ffrr.git ospf6d: Make ospfv3 use normal address resolution instead of import route OSPFv3 recently introduced the usage of import route. Switch it back to using the normal ZEBRA_NEXTHOP_REGISTER command. Signed-off-by: Donald Sharp --- diff --git a/ospf6d/ospf6_zebra.c b/ospf6d/ospf6_zebra.c index 2e2b069fd6..81573da3a6 100644 --- a/ospf6d/ospf6_zebra.c +++ b/ospf6d/ospf6_zebra.c @@ -145,9 +145,9 @@ void ospf6_zebra_import_default_route(struct ospf6 *ospf6, bool unreg) prefix.prefixlen = 0; if (unreg) - command = ZEBRA_IMPORT_ROUTE_UNREGISTER; + command = ZEBRA_NEXTHOP_UNREGISTER; else - command = ZEBRA_IMPORT_ROUTE_REGISTER; + command = ZEBRA_NEXTHOP_REGISTER; if (IS_OSPF6_DEBUG_ZEBRA(SEND)) zlog_debug("%s: sending cmd %s for %pFX (vrf %u)", __func__, @@ -721,7 +721,7 @@ void ospf6_zebra_init(struct thread_master *master) ospf6_zebra_if_address_update_delete; zclient->redistribute_route_add = ospf6_zebra_read_route; zclient->redistribute_route_del = ospf6_zebra_read_route; - zclient->import_check_update = ospf6_zebra_import_check_update; + zclient->nexthop_update = ospf6_zebra_import_check_update; /* Install command element for zebra node. */ install_element(VIEW_NODE, &show_ospf6_zebra_cmd);