summaryrefslogtreecommitdiffstats
path: root/pimd/pim_nb_config.c
diff options
context:
space:
mode:
authorAbhishek N R <abnr@vmware.com>2022-01-18 16:57:15 +0100
committerAbhishek N R <abnr@vmware.com>2022-03-15 07:11:21 +0100
commit5795b17cc379a0c7a31dd12bc92675ac8dd6b6d2 (patch)
tree1b6a764ce0fc8c73aca2a53bc52f8d2c675a384d /pimd/pim_nb_config.c
parentpim6d: Adding "ipv6 mld version" CLI (diff)
downloadfrr-5795b17cc379a0c7a31dd12bc92675ac8dd6b6d2.tar.xz
frr-5795b17cc379a0c7a31dd12bc92675ac8dd6b6d2.zip
pim6d: Adding "ipv6 mld query-interval" CLI
Adding the Interface level config command ipv6 mld query-interval <1-65535> This command can be use to tune the timing for the general queries sent by the querier. Signed-off-by: Abhishek N R <abnr@vmware.com>
Diffstat (limited to 'pimd/pim_nb_config.c')
-rw-r--r--pimd/pim_nb_config.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/pimd/pim_nb_config.c b/pimd/pim_nb_config.c
index 6f62b6ce1..f1b537060 100644
--- a/pimd/pim_nb_config.c
+++ b/pimd/pim_nb_config.c
@@ -384,6 +384,7 @@ static int pim_cmd_igmp_start(struct interface *ifp)
* This function propagates the reconfiguration to every active socket
* for that interface.
*/
+#if PIM_IPV == 4
static void igmp_sock_query_interval_reconfig(struct gm_sock *igmp)
{
struct interface *ifp;
@@ -408,6 +409,7 @@ static void igmp_sock_query_interval_reconfig(struct gm_sock *igmp)
*/
igmp_startup_mode_on(igmp);
}
+#endif
static void igmp_sock_query_reschedule(struct gm_sock *igmp)
{
@@ -438,6 +440,7 @@ static void igmp_sock_query_reschedule(struct gm_sock *igmp)
}
}
+#if PIM_IPV == 4
static void change_query_interval(struct pim_interface *pim_ifp,
int query_interval)
{
@@ -451,6 +454,7 @@ static void change_query_interval(struct pim_interface *pim_ifp,
igmp_sock_query_reschedule(igmp);
}
}
+#endif
static void change_query_max_response_time(struct pim_interface *pim_ifp,
int query_max_response_time_dsec)
@@ -2707,6 +2711,7 @@ int lib_interface_gmp_address_family_mld_version_destroy(
int lib_interface_gmp_address_family_query_interval_modify(
struct nb_cb_modify_args *args)
{
+#if PIM_IPV == 4
struct interface *ifp;
int query_interval;
@@ -2720,7 +2725,9 @@ int lib_interface_gmp_address_family_query_interval_modify(
query_interval = yang_dnode_get_uint16(args->dnode, NULL);
change_query_interval(ifp->info, query_interval);
}
-
+#else
+ /* TBD Depends on MLD data structure changes */
+#endif
return NB_OK;
}