if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
pim_show_assert_helper(vty, pim_ifp, ch, now);
} /* scan interface channels */
if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
pim_show_assert_internal_helper(vty, pim_ifp, ch);
} /* scan interface channels */
if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
pim_show_assert_metric_helper(vty, pim_ifp, ch);
} /* scan interface channels */
if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
pim_show_assert_winner_metric_helper(vty, pim_ifp, ch);
} /* scan interface channels */
if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
pim_show_membership_helper(vty, pim_ifp, ch, json);
} /* scan interface channels */
continue;
pim_nbrs = pim_ifp->pim_neighbor_list->count;
- pim_ifchannels = pim_ifp->pim_ifchannel_list->count;
+ pim_ifchannels = pim_ifp->ifchannel_list->count;
fhr = 0;
for (ALL_LIST_ELEMENTS_RO(pim->upstream_list, upnode, up))
if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
pim_show_join_helper(vty, pim_ifp,
ch, json, now, uj);
if (!pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list,
ch_node, ch)) {
/* scan all interfaces */
pim_show_join_desired_helper(pim, vty,
if (pim_ifp->upstream_switch_list)
list_delete(pim_ifp->upstream_switch_list);
- if (pim_ifp->pim_ifchannel_list) {
- list_delete(pim_ifp->pim_ifchannel_list);
- }
+ if (pim_ifp->ifchannel_list)
+ list_delete(pim_ifp->ifchannel_list);
if (pim_ifp->pim_ifchannel_hash)
hash_free(pim_ifp->pim_ifchannel_hash);
pim_ifp->igmp_socket_list = NULL;
pim_ifp->pim_neighbor_list = NULL;
pim_ifp->upstream_switch_list = NULL;
- pim_ifp->pim_ifchannel_list = NULL;
+ pim_ifp->ifchannel_list = NULL;
pim_ifp->pim_ifchannel_hash = NULL;
pim_ifp->pim_generation_id = 0;
}
/* list of struct pim_ifchannel */
- pim_ifp->pim_ifchannel_list = list_new();
- if (!pim_ifp->pim_ifchannel_list) {
+ pim_ifp->ifchannel_list = list_new();
+ if (!pim_ifp->ifchannel_list) {
zlog_err("%s %s: failure: pim_ifchannel_list=list_new()",
__FILE__, __PRETTY_FUNCTION__);
return if_list_clean(pim_ifp);
}
- pim_ifp->pim_ifchannel_list->del = (void (*)(void *))pim_ifchannel_free;
- pim_ifp->pim_ifchannel_list->cmp =
+ pim_ifp->ifchannel_list->del = (void (*)(void *))pim_ifchannel_free;
+ pim_ifp->ifchannel_list->cmp =
(int (*)(void *, void *))pim_ifchannel_compare;
snprintf(hash_name, 64, "Pim Interface %s hash",
list_delete(pim_ifp->igmp_socket_list);
list_delete(pim_ifp->pim_neighbor_list);
list_delete(pim_ifp->upstream_switch_list);
- list_delete(pim_ifp->pim_ifchannel_list);
+ list_delete(pim_ifp->ifchannel_list);
hash_free(pim_ifp->pim_ifchannel_hash);
pim_ifp = ifp->info;
zassert(pim_ifp);
- for (ALL_LIST_ELEMENTS(pim_ifp->pim_ifchannel_list, node, next_node,
+ for (ALL_LIST_ELEMENTS(pim_ifp->ifchannel_list, node, next_node,
ch)) {
pim_ifchannel_update_could_assert(ch);
}
pim_ifp = ifp->info;
zassert(pim_ifp);
- for (ALL_LIST_ELEMENTS(pim_ifp->pim_ifchannel_list, node, next_node,
+ for (ALL_LIST_ELEMENTS(pim_ifp->ifchannel_list, node, next_node,
ch)) {
pim_ifchannel_update_my_assert_metric(ch);
}
pim_ifp = ifp->info;
zassert(pim_ifp);
- for (ALL_LIST_ELEMENTS(pim_ifp->pim_ifchannel_list, node, next_node,
+ for (ALL_LIST_ELEMENTS(pim_ifp->ifchannel_list, node, next_node,
ch)) {
/* Is (S,G,I) assert loser ? */
if (ch->ifassert_state != PIM_IFASSERT_I_AM_LOSER)
struct pim_ifchannel *ch;
/* clear off flag from interface's upstreams */
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list, ch_node, ch)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list, ch_node, ch)) {
PIM_UPSTREAM_FLAG_UNSET_DR_JOIN_DESIRED_UPDATED(
ch->upstream->flags);
}
/* scan per-interface (S,G,I) state on this I interface */
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list, ch_node, ch)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list, ch_node, ch)) {
struct pim_upstream *up = ch->upstream;
if (PIM_UPSTREAM_FLAG_TEST_DR_JOIN_DESIRED_UPDATED(up->flags))
if (!pim_ifp)
return;
- for (ALL_LIST_ELEMENTS(pim_ifp->pim_ifchannel_list, node, next_node,
+ for (ALL_LIST_ELEMENTS(pim_ifp->ifchannel_list, node, next_node,
ch)) {
pim_ifchannel_update_assert_tracking_desired(ch);
}
uint16_t pim_override_interval_msec; /* config */
struct list *pim_neighbor_list; /* list of struct pim_neighbor */
struct list *upstream_switch_list;
- struct list *pim_ifchannel_list; /* list of struct pim_ifchannel */
+ struct list *ifchannel_list;
struct hash *pim_ifchannel_hash;
/* neighbors without lan_delay */
&& (ch->sg.grp.s_addr == INADDR_ANY))
return;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list, ch_node,
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list, ch_node,
child)) {
if ((ch->sg.grp.s_addr != INADDR_ANY)
&& (child->sg.grp.s_addr == ch->sg.grp.s_addr)
into pim_ifchannel_free() because the later is
called by list_delete_all_node()
*/
- listnode_delete(pim_ifp->pim_ifchannel_list, ch);
+ listnode_delete(pim_ifp->ifchannel_list, ch);
hash_release(pim_ifp->pim_ifchannel_hash, ch);
if (PIM_DEBUG_PIM_TRACE)
if (!pim_ifp)
return;
- for (ALL_LIST_ELEMENTS(pim_ifp->pim_ifchannel_list, ifchannel_node,
+ for (ALL_LIST_ELEMENTS(pim_ifp->ifchannel_list, ifchannel_node,
ifchannel_nextnode, ifchannel)) {
pim_ifchannel_delete(ifchannel);
}
pim_ifp = ifp->info;
zassert(pim_ifp);
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->pim_ifchannel_list, ch_node, ch)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->ifchannel_list, ch_node, ch))
ifmembership_set(ch, PIM_IFMEMBERSHIP_NOINFO);
- }
}
void pim_ifchannel_delete_on_noinfo(struct interface *ifp)
pim_ifp = ifp->info;
zassert(pim_ifp);
- for (ALL_LIST_ELEMENTS(pim_ifp->pim_ifchannel_list, node, next_node,
+ for (ALL_LIST_ELEMENTS(pim_ifp->ifchannel_list, node, next_node,
ch)) {
delete_on_noinfo(ch);
}
ch->ifjoin_creation = 0;
/* Attach to list */
- listnode_add_sort(pim_ifp->pim_ifchannel_list, ch);
+ listnode_add_sort(pim_ifp->ifchannel_list, ch);
ch = hash_get(pim_ifp->pim_ifchannel_hash, ch, hash_alloc_intern);
up = pim_upstream_add(pim_ifp->pim, sg, NULL, up_flags,
THREAD_OFF(ch->t_ifjoin_prune_pending_timer);
THREAD_OFF(ch->t_ifassert_timer);
- listnode_delete(pim_ifp->pim_ifchannel_list, ch);
+ listnode_delete(pim_ifp->ifchannel_list, ch);
hash_release(pim_ifp->pim_ifchannel_hash, ch);
XFREE(MTYPE_PIM_IFCHANNEL, ch);
return NULL;
if (new_pim_ifp == loop_pim_ifp)
continue;
- for (ALL_LIST_ELEMENTS_RO(loop_pim_ifp->pim_ifchannel_list,
+ for (ALL_LIST_ELEMENTS_RO(loop_pim_ifp->ifchannel_list,
ch_node, ch)) {
if (ch->ifjoin_state == PIM_IFJOIN_JOIN) {
struct pim_upstream *up = ch->upstream;