]> git.proxmox.com Git - mirror_frr.git/blobdiff - nhrpd/nhrp_cache.c
Merge pull request #3515 from mjstapp/fix_rib_wq_timer
[mirror_frr.git] / nhrpd / nhrp_cache.c
index f3a33eb28f2cda76876ec533f2bf21e788461199..1316a4aad3a6d759649bfc8b7c87f90dfa960570 100644 (file)
@@ -36,10 +36,12 @@ static unsigned int nhrp_cache_protocol_key(void *peer_data)
        return sockunion_hash(&p->remote_addr);
 }
 
-static int nhrp_cache_protocol_cmp(const void *cache_data, const void *key_data)
+static bool nhrp_cache_protocol_cmp(const void *cache_data,
+                                   const void *key_data)
 {
        const struct nhrp_cache *a = cache_data;
        const struct nhrp_cache *b = key_data;
+
        return sockunion_same(&a->remote_addr, &b->remote_addr);
 }