[bsp][stm32f40x] support lwIP 2.x
This commit is contained in:
parent
f63f1f80dd
commit
b15aa8a1ed
|
@ -3467,7 +3467,7 @@ static void register_multicast_address(struct rt_stm32_eth *stm32_eth, const uin
|
||||||
#endif /* (LWIP_IPV4 && LWIP_IGMP) || (LWIP_IPV6 && LWIP_IPV6_MLD) */
|
#endif /* (LWIP_IPV4 && LWIP_IGMP) || (LWIP_IPV6 && LWIP_IPV6_MLD) */
|
||||||
|
|
||||||
#if LWIP_IPV4 && LWIP_IGMP
|
#if LWIP_IPV4 && LWIP_IGMP
|
||||||
static err_t igmp_mac_filter( struct netif *netif, const ip4_addr_t *ip4_addr, u8_t action )
|
static err_t igmp_mac_filter( struct netif *netif, const ip4_addr_t *ip4_addr, enum netif_mac_filter_action action )
|
||||||
{
|
{
|
||||||
uint8_t mac[6];
|
uint8_t mac[6];
|
||||||
const uint8_t *p = (const uint8_t *)ip4_addr;
|
const uint8_t *p = (const uint8_t *)ip4_addr;
|
||||||
|
@ -3493,7 +3493,7 @@ static err_t igmp_mac_filter( struct netif *netif, const ip4_addr_t *ip4_addr, u
|
||||||
#endif /* LWIP_IPV4 && LWIP_IGMP */
|
#endif /* LWIP_IPV4 && LWIP_IGMP */
|
||||||
|
|
||||||
#if LWIP_IPV6 && LWIP_IPV6_MLD
|
#if LWIP_IPV6 && LWIP_IPV6_MLD
|
||||||
static err_t mld_mac_filter( struct netif *netif, const ip6_addr_t *ip6_addr, u8_t action )
|
static err_t mld_mac_filter( struct netif *netif, const ip6_addr_t *ip6_addr, enum netif_mac_filter_action action )
|
||||||
{
|
{
|
||||||
uint8_t mac[6];
|
uint8_t mac[6];
|
||||||
const uint8_t *p = (const uint8_t *)&ip6_addr->addr[3];
|
const uint8_t *p = (const uint8_t *)&ip6_addr->addr[3];
|
||||||
|
|
Loading…
Reference in New Issue