Bug in EDP multicast example (IPv4 + IPv6)? - Mapped address wrong (IDFGH-8200) #9693
Closed
3 tasks done
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v4.4.2
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
Custom Board (Olimex ESP32-POE based)
Power Supply used.
External 3.3V
What is the expected behavior?
Using the UDP Multicast example:
https://github.com/espressif/esp-idf/tree/master/examples/protocols/sockets/udp_multicast
With the configuration of
Multicast IP type
:IPv4 & IPv6
,Obtain IPv6 address enabled
andPreferred IPv6 Type
set to "Local Link Address`. the (mapped?) IPv4 packets don't appear in Wireshark, and a socat instance running on a different machine in UDP multicast listener mode (as per README) doesn't receive anything.Apparently,
getaddrinfo
returns something unexpected. The log should say it sends toffff:232.10.11.12
(verified with a quick cygwin program which calls getaddrinfo)What is the actual behavior?
Log says the IPv6-mapped-IPv4 address is
::
(see log below).Steps to reproduce.
examples/protocols/sockets
as aboveDebug Logs.
What's strange is the
::
multicast address - getaddrinfo does something unexpected due to the link-local address maybe?More Information.
Cygwin program for comparison:
The text was updated successfully, but these errors were encountered: