autoip: fix 'autoip_remove_struct()' after changing storage to 'netif_client_data'

Reported-by: Amena El Homsi <amena.elhomsi@gmail.com>
Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Simon Goldschmidt
2019-11-21 22:19:35 +01:00
parent 79cd89f99d
commit 03998f5147
2 changed files with 18 additions and 2 deletions

View File

@@ -69,8 +69,7 @@ struct autoip
void autoip_set_struct(struct netif *netif, struct autoip *autoip);
/** Remove a struct autoip previously set to the netif using autoip_set_struct() */
#define autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0)
void autoip_remove_struct(struct netif *netif);
err_t autoip_start(struct netif *netif);
err_t autoip_stop(struct netif *netif);
void autoip_network_changed_link_up(struct netif *netif);