From: Philippe Guibert Date: Thu, 19 Mar 2020 11:09:06 +0000 (+0100) Subject: nhrpd: fix clear nhrp cache dynamic entries X-Git-Tag: base_7.4~203^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F6043%2Fhead;p=mirror%2Ffrr.git nhrpd: fix clear nhrp cache dynamic entries as the helper said, the dynamic cache entries should be flushed once the vty command 'clear ip/ipv6 nhrp cache' mentions. This was not the case. Signed-off-by: Philippe Guibert --- diff --git a/nhrpd/nhrp_vty.c b/nhrpd/nhrp_vty.c index f6d18fb77f..3bae3c1761 100644 --- a/nhrpd/nhrp_vty.c +++ b/nhrpd/nhrp_vty.c @@ -763,7 +763,7 @@ DEFUN(show_dmvpn, show_dmvpn_cmd, static void clear_nhrp_cache(struct nhrp_cache *c, void *data) { struct info_ctx *ctx = data; - if (c->cur.type <= NHRP_CACHE_CACHED) { + if (c->cur.type <= NHRP_CACHE_DYNAMIC) { nhrp_cache_update_binding(c, c->cur.type, -1, NULL, 0, NULL); ctx->count++; }