diff --git a/src/core/netif.c b/src/core/netif.c index c5bd3c50..6956f0ab 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -299,6 +299,7 @@ netif_add(struct netif *netif, /* remember netif specific state information data */ netif->state = state; netif->num = netif_num++; + LWIP_ASSERT("Netif num overflow, too many netifs or adds/removes", netif->num < 255); netif->input = input; NETIF_SET_HWADDRHINT(netif, NULL);