diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-25 09:45:03 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-07-25 14:22:15 -0400 |
| commit | 9fb302f41d836328ad56588036eaf43fe84e2ddf (patch) | |
| tree | 2aa899aa8407118d54d2af441e8cb7ca89e5266d /pimd/pim_igmp.c | |
| parent | 7c59195031572b855dc4da9a78bfe794d41ab281 (diff) | |
pimd: Setup hash names appropriately
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_igmp.c')
| -rw-r--r-- | pimd/pim_igmp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c index c693f30ac2..ea8eff4d59 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -812,6 +812,7 @@ static struct igmp_sock *igmp_sock_new(int fd, struct in_addr ifaddr, { struct pim_interface *pim_ifp; struct igmp_sock *igmp; + char hash_name[64]; pim_ifp = ifp->info; @@ -836,8 +837,10 @@ static struct igmp_sock *igmp_sock_new(int fd, struct in_addr ifaddr, } igmp->igmp_group_list->del = (void (*)(void *))igmp_group_free; - igmp->igmp_group_hash = - hash_create(igmp_group_hash_key, igmp_group_hash_equal, NULL); + snprintf(hash_name, 64, "IGMP %s hash", ifp->name); + igmp->igmp_group_hash = hash_create(igmp_group_hash_key, + igmp_group_hash_equal, + hash_name); igmp->fd = fd; igmp->interface = ifp; |
