mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
fixed my last commit (NETIF_FOREACH does not yet exist :)
This commit is contained in:
parent
7c9a6317b9
commit
18c7c5d81c
@ -533,7 +533,7 @@ ip4_input(struct pbuf *p, struct netif *inp)
|
|||||||
if (!ip4_addr_isloopback(ip4_current_dest_addr()))
|
if (!ip4_addr_isloopback(ip4_current_dest_addr()))
|
||||||
#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
|
#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
|
||||||
{
|
{
|
||||||
NETIF_FOREACH(netif) {
|
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||||
if (netif == inp) {
|
if (netif == inp) {
|
||||||
/* we checked that before already */
|
/* we checked that before already */
|
||||||
continue;
|
continue;
|
||||||
|
@ -635,7 +635,7 @@ ip6_input(struct pbuf *p, struct netif *inp)
|
|||||||
goto netif_found;
|
goto netif_found;
|
||||||
}
|
}
|
||||||
#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
|
#endif /* !LWIP_NETIF_LOOPBACK || LWIP_HAVE_LOOPIF */
|
||||||
NETIF_FOREACH(netif) {
|
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||||
if (netif == inp) {
|
if (netif == inp) {
|
||||||
/* we checked that before already */
|
/* we checked that before already */
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user