Add new configuratin CONFIG_NET_MCASTGROUP. This option is selected automatically if either CONFIG_NET_IGMP or CONFIG_NET_MLD are selected. Most conditional logic based on CONFIG_NET_IGMP replaced with conditioning on CONFIG_NET_MCASTGROUP.

This commit is contained in:
Gregory Nutt
2018-10-31 15:03:51 -06:00
parent dde1e89b8c
commit 6d93658ff8
56 changed files with 239 additions and 220 deletions
+7 -1
View File
@@ -410,11 +410,17 @@ int netdev_register(FAR struct net_driver_s *dev, enum net_lltype_e lltype)
dev->flink = g_netdevices;
g_netdevices = dev;
#ifdef CONFIG_NET_IGMP
/* Configure the device for IGMP support */
#ifdef CONFIG_NET_IGMP
igmp_devinit(dev);
#endif
#ifdef CONFIG_NET_MLD
/* Configure the device for MLD support */
#warning Missing Logic
#endif
net_unlock();
#if defined(CONFIG_NET_ETHERNET) || defined(CONFIG_DRIVERS_IEEE80211)