net/igmp and net/mld: Fix problem when both IGMP and MLD are enabled. The cannot share the same group list in the network devices structure.

This commit is contained in:
Gregory Nutt
2018-11-03 07:06:30 -06:00
parent 42a018747e
commit 863f617262
11 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ struct igmp_iphdr_s
/* Router Alert IP header option */
uint16_t ra[2];
uint16_t ra[2]; /* RFC 2113 */
/* IGMPv2 header:
*
+11 -3
View File
@@ -344,10 +344,18 @@ struct net_driver_s
uint16_t d_sndlen;
#ifdef CONFIG_NET_MCASTGROUP
/* IGMP/MLD group list */
/* Multicast group support */
sq_queue_t grplist;
#ifdef CONFIG_NET_IGMP
/* IGMP group list */
sq_queue_t d_igmp_grplist;
#endif
#ifdef CONFIG_NET_MCASTGROUP
/* MLD group list */
sq_queue_t d_mld_grplist;
#endif
#ifdef CONFIG_NETDEV_STATISTICS