summaryrefslogtreecommitdiffstats
path: root/nhrpd/nhrp_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'nhrpd/nhrp_cache.c')
-rw-r--r--nhrpd/nhrp_cache.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/nhrpd/nhrp_cache.c b/nhrpd/nhrp_cache.c
index 81d9bb255..a1b22645c 100644
--- a/nhrpd/nhrp_cache.c
+++ b/nhrpd/nhrp_cache.c
@@ -330,7 +330,14 @@ static void nhrp_cache_update_timers(struct nhrp_cache *c)
thread_add_timer_msec(master, nhrp_cache_do_free, c, 10,
&c->t_timeout);
break;
- default:
+ case NHRP_CACHE_INCOMPLETE:
+ case NHRP_CACHE_NEGATIVE:
+ case NHRP_CACHE_CACHED:
+ case NHRP_CACHE_DYNAMIC:
+ case NHRP_CACHE_NHS:
+ case NHRP_CACHE_STATIC:
+ case NHRP_CACHE_LOCAL:
+ case NHRP_CACHE_NUM_TYPES:
if (c->cur.expires)
thread_add_timer(master, nhrp_cache_do_timeout, c,
c->cur.expires - monotime(NULL),