]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/zebra_rnh.c
Merge pull request #9345 from mjstapp/fix_lib_zmq_free
[mirror_frr.git] / zebra / zebra_rnh.c
index a4382441c862c1a6243d24938baa1f3205ba5bd1..017a4aae7f7da8455c239e1265959f6f6cee3905 100644 (file)
@@ -598,8 +598,7 @@ static const int RNH_INVALID_NH_FLAGS = (NEXTHOP_FLAG_RECURSIVE |
                                         NEXTHOP_FLAG_DUPLICATE |
                                         NEXTHOP_FLAG_RNH_FILTERED);
 
-static bool rnh_nexthop_valid(const struct route_entry *re,
-                             const struct nexthop *nh)
+bool rnh_nexthop_valid(const struct route_entry *re, const struct nexthop *nh)
 {
        return (CHECK_FLAG(re->status, ROUTE_ENTRY_INSTALLED)
                && CHECK_FLAG(nh->flags, NEXTHOP_FLAG_ACTIVE)
@@ -1367,7 +1366,6 @@ int zebra_send_rnh_update(struct rnh *rnh, struct zserv *client,
        stream_putw_at(s, 0, stream_get_endp(s));
 
        client->nh_last_upd_time = monotime(NULL);
-       client->last_write_cmd = cmd;
        return zserv_send_message(client, s);
 
 failure: