Merge pull request #10126 from SaiGomathiN/cleanup

pimd: removing no caller functions
This commit is contained in:
Igor Ryzhov 2021-11-26 17:24:38 +03:00 committed by GitHub
commit fa36b3d125
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 42 deletions

View File

@ -828,26 +828,6 @@ void pim_if_addr_del_all_igmp(struct interface *ifp)
}
}
void pim_if_addr_del_all_pim(struct interface *ifp)
{
struct connected *ifc;
struct listnode *node;
struct listnode *nextnode;
/* PIM/IGMP enabled ? */
if (!ifp->info)
return;
for (ALL_LIST_ELEMENTS(ifp->connected, node, nextnode, ifc)) {
struct prefix *p = ifc->address;
if (p->family != AF_INET)
continue;
pim_if_addr_del_pim(ifc);
}
}
struct in_addr pim_find_primary_addr(struct interface *ifp)
{
struct connected *ifc;

View File

@ -193,7 +193,6 @@ void pim_if_addr_del(struct connected *ifc, int force_prim_as_any);
void pim_if_addr_add_all(struct interface *ifp);
void pim_if_addr_del_all(struct interface *ifp);
void pim_if_addr_del_all_igmp(struct interface *ifp);
void pim_if_addr_del_all_pim(struct interface *ifp);
int pim_if_add_vif(struct interface *ifp, bool ispimreg, bool is_vxlan_term);
int pim_if_del_vif(struct interface *ifp);

View File

@ -1567,10 +1567,3 @@ void pim_ifchannel_set_star_g_join_state(struct pim_ifchannel *ch, int eom,
if (send_upstream_starg)
pim_jp_agg_single_upstream_send(&starup->rpf, starup, true);
}
unsigned int pim_ifchannel_hash_key(const void *arg)
{
const struct pim_ifchannel *ch = arg;
return jhash_2words(ch->sg.src.s_addr, ch->sg.grp.s_addr, 0);
}

View File

@ -160,6 +160,5 @@ void pim_ifchannel_set_star_g_join_state(struct pim_ifchannel *ch, int eom,
int pim_ifchannel_compare(const struct pim_ifchannel *ch1,
const struct pim_ifchannel *ch2);
unsigned int pim_ifchannel_hash_key(const void *arg);
void delete_on_noinfo(struct pim_ifchannel *ch);
#endif /* PIM_IFCHANNEL_H */

View File

@ -141,18 +141,6 @@ struct igmp_sock *pim_igmp_sock_lookup_ifaddr(struct list *igmp_sock_list,
return NULL;
}
struct igmp_sock *igmp_sock_lookup_by_fd(struct list *igmp_sock_list, int fd)
{
struct listnode *sock_node;
struct igmp_sock *igmp;
for (ALL_LIST_ELEMENTS_RO(igmp_sock_list, sock_node, igmp))
if (fd == igmp->fd)
return igmp;
return NULL;
}
static int pim_igmp_other_querier_expire(struct thread *t)
{
struct igmp_sock *igmp;

View File

@ -110,7 +110,6 @@ void pim_igmp_if_fini(struct pim_interface *pim_ifp);
struct igmp_sock *pim_igmp_sock_lookup_ifaddr(struct list *igmp_sock_list,
struct in_addr ifaddr);
struct igmp_sock *igmp_sock_lookup_by_fd(struct list *igmp_sock_list, int fd);
struct igmp_sock *pim_igmp_sock_add(struct list *igmp_sock_list,
struct in_addr ifaddr,
struct interface *ifp,