diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-18 11:37:56 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-02-16 16:40:56 +0100 | 
| commit | 5a46a3dea93fe645b4ce0f992e740081cde10dfa (patch) | |
| tree | 7f0f28082588b968a412d8d09cc13ea7491c1542 /pimd/pim_iface.c | |
| parent | 809c11a9d87e0d12a5c3d3ca6906bc398a58de6c (diff) | |
pim6d: drop off IGMP code
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_iface.c')
| -rw-r--r-- | pimd/pim_iface.c | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 1cdc46df6a..cf50371712 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -50,10 +50,12 @@  #include "pim_igmp_join.h"  #include "pim_vxlan.h" +#if PIM_IPV == 4  static void pim_if_igmp_join_del_all(struct interface *ifp);  static int igmp_join_sock(const char *ifname, ifindex_t ifindex,  			  struct in_addr group_addr,  			  struct in_addr source_addr); +#endif  void pim_if_init(struct pim_instance *pim)  { @@ -1148,6 +1150,7 @@ long pim_if_t_suppressed_msec(struct interface *ifp)  	return t_suppressed_msec;  } +#if PIM_IPV == 4  static void igmp_join_free(struct gm_join *ij)  {  	XFREE(MTYPE_PIM_IGMP_JOIN, ij); @@ -1358,6 +1361,19 @@ static void pim_if_igmp_join_del_all(struct interface *ifp)  	for (ALL_LIST_ELEMENTS(pim_ifp->gm_join_list, node, nextnode, ij))  		pim_if_igmp_join_del(ifp, ij->group_addr, ij->source_addr);  } +#else /* PIM_IPV != 4 */ +ferr_r pim_if_igmp_join_add(struct interface *ifp, struct in_addr group_addr, +			    struct in_addr source_addr) +{ +	return ferr_ok(); +} + +int pim_if_igmp_join_del(struct interface *ifp, struct in_addr group_addr, +			 struct in_addr source_addr) +{ +	return 0; +} +#endif /* PIM_IPV != 4 */  /*    RFC 4601  | 
