]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/if_rmap.c
zebra: Allow ns delete to happen after under/over flow checks
[mirror_frr.git] / lib / if_rmap.c
index 968c087c3c4d97e8795563a2b9feef11f60e0dd6..108ab7ec6b5dacc737970eae4fb60dbbf766938e 100644 (file)
@@ -117,7 +117,7 @@ static unsigned int if_rmap_hash_make(void *data)
        return string_hash_make(if_rmap->ifname);
 }
 
-static int if_rmap_hash_cmp(const void *arg1, const void *arg2)
+static bool if_rmap_hash_cmp(const void *arg1, const void *arg2)
 {
        const struct if_rmap *if_rmap1 = arg1;
        const struct if_rmap *if_rmap2 = arg2;
@@ -294,7 +294,8 @@ void if_rmap_reset()
 
 void if_rmap_init(int node)
 {
-       ifrmaphash = hash_create(if_rmap_hash_make, if_rmap_hash_cmp, NULL);
+       ifrmaphash = hash_create_size(4, if_rmap_hash_make, if_rmap_hash_cmp,
+                                     "Interface Route-Map Hash");
        if (node == RIPNG_NODE) {
        } else if (node == RIP_NODE) {
                install_element(RIP_NODE, &if_rmap_cmd);