You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/11/16 15:29:55 UTC
(nuttx) branch master updated: igmp: call IFF_SET_IPv4 when igmp_send
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 8a479cc2ca igmp: call IFF_SET_IPv4 when igmp_send
8a479cc2ca is described below
commit 8a479cc2caf52045e2a56b6907d145bf0b4c7697
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Wed Nov 15 17:45:26 2023 +0800
igmp: call IFF_SET_IPv4 when igmp_send
If the flag is not set, The flag is affected by the previously sent and
received packets, L2 header may be filled with ipv6
Signed-off-by: zhanghongyu <zh...@xiaomi.com>
---
net/igmp/igmp_send.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/net/igmp/igmp_send.c b/net/igmp/igmp_send.c
index 378f3fbc44..8ce28a905f 100644
--- a/net/igmp/igmp_send.c
+++ b/net/igmp/igmp_send.c
@@ -116,6 +116,10 @@ void igmp_send(FAR struct net_driver_s *dev, FAR struct igmp_group_s *group,
return;
}
+ /* Select IPv4 */
+
+ IFF_SET_IPv4(dev->d_flags);
+
/* The IGMP header immediately follows the IP header */
iphdrlen = IPv4_HDRLEN + RASIZE;