summaryrefslogtreecommitdiff
path: root/core/lwip/src/include/ipv4/lwip/autoip.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/lwip/src/include/ipv4/lwip/autoip.h')
-rw-r--r--core/lwip/src/include/ipv4/lwip/autoip.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/lwip/src/include/ipv4/lwip/autoip.h b/core/lwip/src/include/ipv4/lwip/autoip.h
index f2621658..23c264a1 100644
--- a/core/lwip/src/include/ipv4/lwip/autoip.h
+++ b/core/lwip/src/include/ipv4/lwip/autoip.h
@@ -80,7 +80,7 @@ extern "C" {
struct autoip
{
- struct ip_addr llipaddr; /* the currently selected, probed, announced or used LL IP-Address */
+ ip_addr_t llipaddr; /* the currently selected, probed, announced or used LL IP-Address */
u8_t state; /* current AutoIP state machine state */
u8_t sent_num; /* sent number of probes or announces, dependent on state */
u16_t ttw; /* ticks to wait, tick is AUTOIP_TMR_INTERVAL long */
@@ -92,6 +92,9 @@ struct autoip
/** Init srand, has to be called before entering mainloop */
void autoip_init(void);
+/** Set a struct autoip allocated by the application to work with */
+void autoip_set_struct(struct netif *netif, struct autoip *autoip);
+
/** Start AutoIP client */
err_t autoip_start(struct netif *netif);