lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] autoip_remove_struct()


From: Dirk Ziegelmeier
Subject: Re: [lwip-users] autoip_remove_struct()
Date: Wed, 20 Nov 2019 09:41:23 +0100

no

Ciao
Dirk


On Wed, Nov 20, 2019 at 9:41 AM Amena El Homsi <address@hidden> wrote:
Thanks.. Is there a new lwip version that fixes this bug?

On Wed, Nov 20, 2019 at 10:33 AM Dirk Ziegelmeier <address@hidden> wrote:
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-Homsi
Computer & Communication Engineer
Dipl. 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


--

Amena El-Homsi
Computer & Communication Engineer
Dipl. Eng,  M.S.
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

[Prev in Thread] Current Thread [Next in Thread]