mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
fix that LWIP_MULTICAST_TX_OPTIONS must be used in ip4_route instead of LWIP_IGMP
This commit is contained in:
parent
bc4473b275
commit
2a6f31a84e
@ -134,12 +134,12 @@ ip4_route(const ip4_addr_t *dest)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if LWIP_IGMP
|
#if LWIP_MULTICAST_TX_OPTIONS
|
||||||
/* Use administratively selected interface for multicast by default */
|
/* Use administratively selected interface for multicast by default */
|
||||||
if (ip4_addr_ismulticast(dest) && ip4_default_multicast_netif) {
|
if (ip4_addr_ismulticast(dest) && ip4_default_multicast_netif) {
|
||||||
return ip4_default_multicast_netif;
|
return ip4_default_multicast_netif;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_IGMP */
|
#endif /* LWIP_MULTICAST_TX_OPTIONS */
|
||||||
|
|
||||||
/* iterate through netifs */
|
/* iterate through netifs */
|
||||||
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user