fix that LWIP_MULTICAST_TX_OPTIONS must be used in ip4_route instead of LWIP_IGMP

This commit is contained in:
goldsimon 2015-08-18 16:35:06 +02:00
parent bc4473b275
commit 2a6f31a84e

View File

@ -134,12 +134,12 @@ ip4_route(const ip4_addr_t *dest)
}
#endif
#if LWIP_IGMP
#if LWIP_MULTICAST_TX_OPTIONS
/* Use administratively selected interface for multicast by default */
if (ip4_addr_ismulticast(dest) && ip4_default_multicast_netif) {
return ip4_default_multicast_netif;
}
#endif /* LWIP_IGMP */
#endif /* LWIP_MULTICAST_TX_OPTIONS */
/* iterate through netifs */
for (netif = netif_list; netif != NULL; netif = netif->next) {