summaryrefslogtreecommitdiffstats
path: root/pimd/pim_nb_config.c
diff options
context:
space:
mode:
authorSai Gomathi <nsaigomathi@vmware.com>2022-01-04 15:00:50 +0100
committerSai Gomathi <nsaigomathi@vmware.com>2022-01-11 12:18:06 +0100
commit18adcff1c0d9b8bbda7778c5853274589772d1b5 (patch)
treeb738836df5112c2132930122c842e45ab1b001d8 /pimd/pim_nb_config.c
parentMerge pull request #10212 from mobash-rasool/mld-pim6-dev-prefix (diff)
downloadfrr-18adcff1c0d9b8bbda7778c5853274589772d1b5.tar.xz
frr-18adcff1c0d9b8bbda7778c5853274589772d1b5.zip
pimd: Modifying members of pim_interface to accommodate IPv6 changes
Modifying the members of pim_interface which are to be used for both IPv4 and IPv6 to common names(for both MLD and IGMP). Issues: #10023 Co-authored-by: Mobashshera Rasool <mrasool@vmware.com> Co-authored-by: Sarita Patra <saritap@vmware.com> Signed-off-by: Sai Gomathi <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd/pim_nb_config.c')
-rw-r--r--pimd/pim_nb_config.c35
1 files changed, 17 insertions, 18 deletions
diff --git a/pimd/pim_nb_config.c b/pimd/pim_nb_config.c
index 9b79646da..0ef52f523 100644
--- a/pimd/pim_nb_config.c
+++ b/pimd/pim_nb_config.c
@@ -86,7 +86,7 @@ static void pim_if_membership_refresh(struct interface *ifp)
*/
/* scan igmp groups */
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->igmp_group_list, grpnode, grp)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->gm_group_list, grpnode, grp)) {
struct listnode *srcnode;
struct gm_source *src;
@@ -105,7 +105,7 @@ static void pim_if_membership_refresh(struct interface *ifp)
}
} /* scan group sources */
- } /* scan igmp groups */
+ } /* scan igmp groups */
/*
* Finally delete every PIM (S,G) entry lacking all state info
@@ -381,16 +381,16 @@ static void igmp_sock_query_interval_reconfig(struct gm_sock *igmp)
char ifaddr_str[INET_ADDRSTRLEN];
pim_inet4_dump("<ifaddr?>", igmp->ifaddr, ifaddr_str,
- sizeof(ifaddr_str));
+ sizeof(ifaddr_str));
zlog_debug("%s: Querier %s on %s reconfig query_interval=%d",
- __func__, ifaddr_str, ifp->name,
- pim_ifp->igmp_default_query_interval);
+ __func__, ifaddr_str, ifp->name,
+ pim_ifp->gm_default_query_interval);
}
/*
* igmp_startup_mode_on() will reset QQI:
- * igmp->querier_query_interval = pim_ifp->igmp_default_query_interval;
+ * igmp->querier_query_interval = pim_ifp->gm_default_query_interval;
*/
igmp_startup_mode_on(igmp);
}
@@ -430,9 +430,9 @@ static void change_query_interval(struct pim_interface *pim_ifp,
struct listnode *sock_node;
struct gm_sock *igmp;
- pim_ifp->igmp_default_query_interval = query_interval;
+ pim_ifp->gm_default_query_interval = query_interval;
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->igmp_socket_list, sock_node, igmp)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->gm_socket_list, sock_node, igmp)) {
igmp_sock_query_interval_reconfig(igmp);
igmp_sock_query_reschedule(igmp);
}
@@ -446,12 +446,11 @@ static void change_query_max_response_time(struct pim_interface *pim_ifp,
struct listnode *grp_node;
struct gm_group *grp;
- if (pim_ifp->igmp_query_max_response_time_dsec
- == query_max_response_time_dsec)
+ if (pim_ifp->gm_query_max_response_time_dsec ==
+ query_max_response_time_dsec)
return;
- pim_ifp->igmp_query_max_response_time_dsec =
- query_max_response_time_dsec;
+ pim_ifp->gm_query_max_response_time_dsec = query_max_response_time_dsec;
/*
* Below we modify socket/group/source timers in order to quickly
@@ -460,13 +459,13 @@ static void change_query_max_response_time(struct pim_interface *pim_ifp,
*/
/* scan all sockets */
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->igmp_socket_list, sock_node, igmp)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->gm_socket_list, sock_node, igmp)) {
/* reschedule socket general query */
igmp_sock_query_reschedule(igmp);
}
/* scan socket groups */
- for (ALL_LIST_ELEMENTS_RO(pim_ifp->igmp_group_list, grp_node, grp)) {
+ for (ALL_LIST_ELEMENTS_RO(pim_ifp->gm_group_list, grp_node, grp)) {
struct listnode *src_node;
struct gm_source *src;
@@ -2690,7 +2689,7 @@ int lib_interface_igmp_last_member_query_interval_modify(
pim_ifp = ifp->info;
last_member_query_interval =
yang_dnode_get_uint16(args->dnode, NULL);
- pim_ifp->igmp_specific_query_max_response_time_dsec =
+ pim_ifp->gm_specific_query_max_response_time_dsec =
last_member_query_interval;
break;
@@ -2717,9 +2716,9 @@ int lib_interface_igmp_robustness_variable_modify(
case NB_EV_APPLY:
ifp = nb_running_get_entry(args->dnode, NULL, true);
pim_ifp = ifp->info;
- last_member_query_count = yang_dnode_get_uint8(args->dnode,
- NULL);
- pim_ifp->igmp_last_member_query_count = last_member_query_count;
+ last_member_query_count =
+ yang_dnode_get_uint8(args->dnode, NULL);
+ pim_ifp->gm_last_member_query_count = last_member_query_count;
break;
}