diff --git a/components/lwip/port/esp8266/netif/ethernetif.c b/components/lwip/port/esp8266/netif/ethernetif.c index 42dbef09..aa5c516c 100644 --- a/components/lwip/port/esp8266/netif/ethernetif.c +++ b/components/lwip/port/esp8266/netif/ethernetif.c @@ -316,6 +316,11 @@ static int8_t low_level_output(struct netif* netif, struct pbuf* p) return ERR_ARG; } + if (!netif_is_up(netif)) { + LWIP_DEBUGF(NETIF_DEBUG, ("low_level_output: netif is not up\n")); + return ERR_RTE; + } + #if ETH_PAD_SIZE pbuf_header(p, -ETH_PAD_SIZE); /* drop the padding word */ #endif