diff options
| author | geniusgogo <[email protected]> | 2023-12-05 23:09:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-05 23:09:19 +0800 |
| commit | 3bc29c76735487c1bfadedd409901fe0091164a9 (patch) | |
| tree | 6dc41dde8d962bc0203c7411a70d9748553d4e15 /components/net/lwip/lwip-2.1.2/src/include | |
| parent | 474a55ea36c46e95b0f57610c289be64d7d054f1 (diff) | |
sync update net. (#8333)
Diffstat (limited to 'components/net/lwip/lwip-2.1.2/src/include')
| -rw-r--r-- | components/net/lwip/lwip-2.1.2/src/include/lwip/netif.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/net/lwip/lwip-2.1.2/src/include/lwip/netif.h b/components/net/lwip/lwip-2.1.2/src/include/lwip/netif.h index 911196ab3d..dd2b484c09 100644 --- a/components/net/lwip/lwip-2.1.2/src/include/lwip/netif.h +++ b/components/net/lwip/lwip-2.1.2/src/include/lwip/netif.h @@ -67,7 +67,9 @@ extern "C" { * netif can be identified by in APIs. Composed of * 2 chars, 3 (max) digits, and 1 \0 */ +#ifndef NETIF_NAMESIZE #define NETIF_NAMESIZE 6 +#endif /** * @defgroup netif_flags Flags @@ -344,8 +346,8 @@ struct netif { /** flags (@see @ref netif_flags) */ u8_t flags; /** descriptive abbreviation */ - char name[2]; - /** number of this interface. Used for @ref if_api and @ref netifapi_netif, + char name[NETIF_NAMESIZE]; + /** number of this interface. Used for @ref if_api and @ref netifapi_netif, * as well as for IPv6 zones */ u8_t num; #if LWIP_IPV6_AUTOCONFIG |
