From 18c7c5d81c69c26b969e637e2eddddc1f10f5623 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 1 Mar 2017 14:12:50 +0100 Subject: [PATCH] fixed my last commit (NETIF_FOREACH does not yet exist :) --- src/core/ipv4/ip4.c | 2 +- src/core/ipv6/ip6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c index 6a5eab64..316469cf 100644 --- a/src/core/ipv4/ip4.c +++ b/src/core/ipv4/ip4.c @@ -533,7 +533,7 @@ ip4_input(struct pbuf *p, struct netif *inp) if (!ip4_addr_isloopback(ip4_current_dest_addr())) #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ { - NETIF_FOREACH(netif) { + for (netif = netif_list; netif != NULL; netif = netif->next) { if (netif == inp) { /* we checked that before already */ continue; diff --git a/src/core/ipv6/ip6.c b/src/core/ipv6/ip6.c index 3a5ed835..e8953673 100644 --- a/src/core/ipv6/ip6.c +++ b/src/core/ipv6/ip6.c @@ -635,7 +635,7 @@ ip6_input(struct pbuf *p, struct netif *inp) goto netif_found; } #endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */ - NETIF_FOREACH(netif) { + for (netif = netif_list; netif != NULL; netif = netif->next) { if (netif == inp) { /* we checked that before already */ continue;