Skip to content

Commit 93f02e4

Browse files
author
Mika Leppänen
committed
Renamed filter constant
1 parent b62df00 commit 93f02e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ err_t k64f_etharp_output_ipv6(struct netif *netif, struct pbuf *q, const ip6_add
299299
err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
300300
{
301301
switch (action) {
302-
case IGMP_ADD_MAC_FILTER:
302+
case NETIF_ADD_MAC_FILTER:
303303
{
304304
uint32_t group23 = ntohl(group->addr) & 0x007FFFFF;
305305
uint8_t addr[6];
@@ -312,7 +312,7 @@ err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
312312
ENET_AddMulticastGroup(ENET, addr);
313313
return ERR_OK;
314314
}
315-
case IGMP_DEL_MAC_FILTER:
315+
case NETIF_DEL_MAC_FILTER:
316316
/* As we don't reference count, silently ignore delete requests */
317317
return ERR_OK;
318318
default:
@@ -333,7 +333,7 @@ err_t igmp_mac_filter(struct netif *netif, const ip4_addr_t *group, u8_t action)
333333
err_t mld_mac_filter(struct netif *netif, const ip6_addr_t *group, u8_t action)
334334
{
335335
switch (action) {
336-
case MLD6_ADD_MAC_FILTER:
336+
case NETIF_ADD_MAC_FILTER:
337337
{
338338
uint32_t group32 = ntohl(group->addr[3]);
339339
uint8_t addr[6];
@@ -346,7 +346,7 @@ err_t mld_mac_filter(struct netif *netif, const ip6_addr_t *group, u8_t action)
346346
ENET_AddMulticastGroup(ENET, addr);
347347
return ERR_OK;
348348
}
349-
case MLD6_DEL_MAC_FILTER:
349+
case NETIF_DEL_MAC_FILTER:
350350
/* As we don't reference count, silently ignore delete requests */
351351
return ERR_OK;
352352
default:

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask,
449449
if (lwip_netif.mld_mac_filter != NULL) {
450450
ip6_addr_t ip6_allnodes_ll;
451451
ip6_addr_set_allnodes_linklocal(&ip6_allnodes_ll);
452-
lwip_netif.mld_mac_filter(&lwip_netif, &ip6_allnodes_ll, MLD6_ADD_MAC_FILTER);
452+
lwip_netif.mld_mac_filter(&lwip_netif, &ip6_allnodes_ll, NETIF_ADD_MAC_FILTER);
453453
}
454454
#endif /* LWIP_IPV6_MLD */
455455

0 commit comments

Comments
 (0)