diff options
| author | Sai Gomathi <nsaigomathi@vmware.com> | 2021-12-03 10:23:23 -0800 | 
|---|---|---|
| committer | Sai Gomathi <nsaigomathi@vmware.com> | 2021-12-03 10:27:12 -0800 | 
| commit | c5f76fad1a2b0f6127d7b8ef94f24798e60dbbd6 (patch) | |
| tree | d71cde145cd4b37ae8f2cd983955ae54328d4845 /pimd/pim_igmpv3.c | |
| parent | a16db099e44dd05f7c43e3770b22cff0c8d0d0f6 (diff) | |
pimd: Modifying struct igmp_sock to gm_sock for IPv6
Modifying name of struct igmp_sock to struct gm_sock, which is to be used
by both IPv4 and IPv6(for both MLD and IGMP).
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_igmpv3.c')
| -rw-r--r-- | pimd/pim_igmpv3.c | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/pimd/pim_igmpv3.c b/pimd/pim_igmpv3.c index e91b48c937..0dd6d0a351 100644 --- a/pimd/pim_igmpv3.c +++ b/pimd/pim_igmpv3.c @@ -60,7 +60,7 @@ static void on_trace(const char *label, struct interface *ifp,  static inline long igmp_gmi_msec(struct gm_group *group)  {  	struct pim_interface *pim_ifp = group->interface->info; -	struct igmp_sock *igmp; +	struct gm_sock *igmp;  	struct listnode *sock_node;  	long qrv = 0, qqi = 0; @@ -481,7 +481,7 @@ struct gm_source *igmp_get_source_by_addr(struct gm_group *group,  	return src;  } -static void allow(struct igmp_sock *igmp, struct in_addr from, +static void allow(struct gm_sock *igmp, struct in_addr from,  		  struct in_addr group_addr, int num_sources,  		  struct in_addr *sources)  { @@ -548,7 +548,7 @@ static void allow(struct igmp_sock *igmp, struct in_addr from,  	} /* scan received sources */  } -void igmpv3_report_isin(struct igmp_sock *igmp, struct in_addr from, +void igmpv3_report_isin(struct gm_sock *igmp, struct in_addr from,  			struct in_addr group_addr, int num_sources,  			struct in_addr *sources)  { @@ -658,7 +658,7 @@ static void isex_incl(struct gm_group *group, int num_sources,  	group_exclude_fwd_anysrc_ifempty(group);  } -void igmpv3_report_isex(struct igmp_sock *igmp, struct in_addr from, +void igmpv3_report_isex(struct gm_sock *igmp, struct in_addr from,  			struct in_addr group_addr, int num_sources,  			struct in_addr *sources, int from_igmp_v2_report)  { @@ -775,7 +775,7 @@ static void toin_excl(struct gm_group *group, int num_sources,  	group_query_send(group);  } -void igmpv3_report_toin(struct igmp_sock *igmp, struct in_addr from, +void igmpv3_report_toin(struct gm_sock *igmp, struct in_addr from,  			struct in_addr group_addr, int num_sources,  			struct in_addr *sources)  { @@ -936,7 +936,7 @@ static void toex_excl(struct gm_group *group, int num_sources,  	}  } -void igmpv3_report_toex(struct igmp_sock *igmp, struct in_addr from, +void igmpv3_report_toex(struct gm_sock *igmp, struct in_addr from,  			struct in_addr group_addr, int num_sources,  			struct in_addr *sources)  { @@ -965,7 +965,7 @@ void igmpv3_report_toex(struct igmp_sock *igmp, struct in_addr from,  	igmp_group_reset_gmi(group);  } -void igmpv3_report_allow(struct igmp_sock *igmp, struct in_addr from, +void igmpv3_report_allow(struct gm_sock *igmp, struct in_addr from,  			 struct in_addr group_addr, int num_sources,  			 struct in_addr *sources)  { @@ -981,7 +981,7 @@ static void igmp_send_query_group(struct gm_group *group, char *query_buf,  {  	struct interface *ifp = group->interface;  	struct pim_interface *pim_ifp = ifp->info; -	struct igmp_sock *igmp; +	struct gm_sock *igmp;  	struct listnode *sock_node;  	for (ALL_LIST_ELEMENTS_RO(pim_ifp->socket_list, sock_node, igmp)) { @@ -1460,7 +1460,7 @@ static void block_incl(struct gm_group *group, int num_sources,  	}  } -void igmpv3_report_block(struct igmp_sock *igmp, struct in_addr from, +void igmpv3_report_block(struct gm_sock *igmp, struct in_addr from,  			 struct in_addr group_addr, int num_sources,  			 struct in_addr *sources)  { @@ -1689,7 +1689,7 @@ void igmp_v3_send_query(struct gm_group *group, int fd, const char *ifname,  	}  } -void igmp_v3_recv_query(struct igmp_sock *igmp, const char *from_str, +void igmp_v3_recv_query(struct gm_sock *igmp, const char *from_str,  			char *igmp_msg)  {  	struct interface *ifp; @@ -1825,7 +1825,7 @@ void igmp_v3_recv_query(struct igmp_sock *igmp, const char *from_str,  	} /* s_flag is clear: timer updates */  } -int igmp_v3_recv_report(struct igmp_sock *igmp, struct in_addr from, +int igmp_v3_recv_report(struct gm_sock *igmp, struct in_addr from,  			const char *from_str, char *igmp_msg, int igmp_msg_len)  {  	int num_groups;  | 
