|
From: | Amena El Homsi |
Subject: | Re: [lwip-users] autoip_remove_struct() |
Date: | Wed, 20 Nov 2019 10:40:41 +0200 |
thats a bug, a correct function would be
/**
* @ingroup autoip
* Remove a struct autoip previously set to the netif using autoip_set_struct()
*
* @param netif the netif for which to set the struct autoip
*/
void
autoip_remove_struct(struct netif *netif)
{
LWIP_ASSERT_CORE_LOCKED();
LWIP_ASSERT("netif != NULL", netif != NULL);
LWIP_ASSERT("netif has no struct autoip set",
netif_autoip_data(netif) != NULL);
netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_AUTOIP, NULL);
}
Ciao
Dirk_______________________________________________On Wed, Nov 20, 2019 at 9:26 AM Amena El Homsi <address@hidden> wrote:Hello,_______________________________________________I set autoip struct using autoip_set_struct(). However, when I call autoip_remove_struct() I got a compilation error:error: no member named 'autoip' in 'struct netif'Why dhcp_remove_struct() is expanded to: netif_set_client_data(netif, LWIP_NETIF_CLIENT_DATA_INDEX_DHCP, NULL)and autoip_remove_struct is expanded to: do { (netif)->autoip = NULL; } while (0)?--Amena El-HomsiComputer & Communication EngineerDipl. Eng, M.S.
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
[Prev in Thread] | Current Thread | [Next in Thread] |