mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 20:57:54 +00:00
Fix compile when LWIP_NUM_NETIF_CLIENT_DATA == 0 and AUTOIP or DHCP are enabled
This commit is contained in:
parent
ab8a1a0430
commit
b944ceb89d
@ -424,7 +424,7 @@ void netif_poll_all(void);
|
|||||||
|
|
||||||
err_t netif_input(struct pbuf *p, struct netif *inp);
|
err_t netif_input(struct pbuf *p, struct netif *inp);
|
||||||
|
|
||||||
#if LWIP_NUM_NETIF_CLIENT_DATA > 0
|
#if LWIP_DHCP || LWIP_AUTOIP || (LWIP_NUM_NETIF_CLIENT_DATA > 0)
|
||||||
u8_t netif_alloc_client_data_id(void);
|
u8_t netif_alloc_client_data_id(void);
|
||||||
/** @ingroup netif_cd
|
/** @ingroup netif_cd
|
||||||
* Set client data. Obtain ID from netif_alloc_client_data_id().
|
* Set client data. Obtain ID from netif_alloc_client_data_id().
|
||||||
@ -434,7 +434,7 @@ u8_t netif_alloc_client_data_id(void);
|
|||||||
* Get client data. Obtain ID from netif_alloc_client_data_id().
|
* Get client data. Obtain ID from netif_alloc_client_data_id().
|
||||||
*/
|
*/
|
||||||
#define netif_get_client_data(netif, id) (netif)->client_data[(id)]
|
#define netif_get_client_data(netif, id) (netif)->client_data[(id)]
|
||||||
#endif
|
#endif /* LWIP_DHCP || LWIP_AUTOIP || (LWIP_NUM_NETIF_CLIENT_DATA > 0) */
|
||||||
|
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
/** @ingroup netif_ip6 */
|
/** @ingroup netif_ip6 */
|
||||||
|
Loading…
Reference in New Issue
Block a user