Renamed filter constant

pull/3721/head
Mika Leppänen 2017-01-23 14:32:16 +02:00
parent b62df0033f
commit 93f02e4fed
2 changed files with 5 additions and 5 deletions

View File

@ -299,7 +299,7 @@ err_t k64f_etharp_output_ipv6(struct netif *netif, struct pbuf *q, const ip6_add
err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
{
switch (action) {
case IGMP_ADD_MAC_FILTER:
case NETIF_ADD_MAC_FILTER:
{
uint32_t group23 = ntohl(group->addr) & 0x007FFFFF;
uint8_t addr[6];
@ -312,7 +312,7 @@ err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
ENET_AddMulticastGroup(ENET, addr);
return ERR_OK;
}
case IGMP_DEL_MAC_FILTER:
case NETIF_DEL_MAC_FILTER:
/* As we don't reference count, silently ignore delete requests */
return ERR_OK;
default:
@ -333,7 +333,7 @@ err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
err_t mld_mac_filter(struct netif *netif, const ip6_addr_t *group, u8_t action)
{
switch (action) {
case MLD6_ADD_MAC_FILTER:
case NETIF_ADD_MAC_FILTER:
{
uint32_t group32 = ntohl(group->addr[3]);
uint8_t addr[6];
@ -346,7 +346,7 @@ err_t mld_mac_filter(struct netif *netif, const ip6_addr_t *group, u8_t action)
ENET_AddMulticastGroup(ENET, addr);
return ERR_OK;
}
case MLD6_DEL_MAC_FILTER:
case NETIF_DEL_MAC_FILTER:
/* As we don't reference count, silently ignore delete requests */
return ERR_OK;
default:

View File

@ -449,7 +449,7 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask,
if (lwip_netif.mld_mac_filter != NULL) {
ip6_addr_t ip6_allnodes_ll;
ip6_addr_set_allnodes_linklocal(&ip6_allnodes_ll);
lwip_netif.mld_mac_filter(&lwip_netif, &ip6_allnodes_ll, MLD6_ADD_MAC_FILTER);
lwip_netif.mld_mac_filter(&lwip_netif, &ip6_allnodes_ll, NETIF_ADD_MAC_FILTER);
}
#endif /* LWIP_IPV6_MLD */