]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/nhrp_cache.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / nhrpd / nhrp_cache.c
index 81d9bb255f7a522e8083a38b34c4bb4134134101..31b370cbf83927921c5a918b271aa5cd1b988c7d 100644 (file)
@@ -1,10 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /* NHRP cache
  * Copyright (c) 2014-2015 Timo Teräs
- *
- * This file is free software: you may copy, redistribute and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
  */
 
 #include "zebra.h"
@@ -330,7 +326,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),