mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user