From 8ae472821f680445e9b6cf86262fdcf80fffb92c Mon Sep 17 00:00:00 2001 From: Grant Erickson Date: Sat, 27 Apr 2013 12:20:29 -0700 Subject: [PATCH] autoip: add autoip_remove_struct Added previously-missing autoip_remove_struct as a companion to autoip_set_struct and to parallel dhcp_{set,remove}_struct. --- src/include/ipv4/lwip/autoip.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/ipv4/lwip/autoip.h b/src/include/ipv4/lwip/autoip.h index e62b72e8..b9f18733 100644 --- a/src/include/ipv4/lwip/autoip.h +++ b/src/include/ipv4/lwip/autoip.h @@ -94,6 +94,9 @@ struct autoip /** Set a struct autoip allocated by the application to work with */ 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) + /** Start AutoIP client */ err_t autoip_start(struct netif *netif);