1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-18 23:03:34 +03:00

UdpContext::setMulticastInterface(): fix for IPv6 (#5743)

Per 'udp_set_multicast_netif_addr()' signature and comments in lwIP sources:
An IPv4 address designating a specific interface must be used.
When an IPv6 address is given, the matching IPv4 in the same interface must be selected.

fix e3bc3c226b (r32235572)
This commit is contained in:
david gauchard
2019-02-08 15:23:08 +01:00
committed by GitHub
parent 82487e5d96
commit 1959311180
2 changed files with 32 additions and 0 deletions

View File

@ -118,6 +118,7 @@ struct netifWrapper
String toString() const { return addr().toString(); }
// related to legacy address (_num=0, ipv4)
IPAddress ipv4 () const { return _netif->ip_addr; }
IPAddress netmask () const { return _netif->netmask; }
IPAddress gw () const { return _netif->gw; }