Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
AUTOIP related functions USAGE: More...
Functions | |
void | autoip_set_struct (struct netif *netif, struct autoip *autoip) |
Set a statically allocated struct autoip to work with. | |
err_t | autoip_start (struct netif *netif) |
Start AutoIP client. | |
err_t | autoip_stop (struct netif *netif) |
Stop AutoIP client. |
Detailed Description
AUTOIP related functions USAGE:
define LWIP_AUTOIP 1 in your lwipopts.h Options: AUTOIP_TMR_INTERVAL msecs, I recommend a value of 100. The value must divide 1000 with a remainder almost 0. Possible values are 1000, 500, 333, 250, 200, 166, 142, 125, 111, 100 ....
Without DHCP:
- Call autoip_start() after netif_add().
With DHCP:
- define LWIP_DHCP_AUTOIP_COOP 1 in your lwipopts.h.
- Configure your DHCP Client.
- See also:
- AUTOIP
Function Documentation
Set a statically allocated struct autoip to work with.
Using this prevents autoip_start to allocate it using mem_malloc.
- Parameters:
-
netif the netif for which to set the struct autoip autoip (uninitialised) autoip struct allocated by the application
Definition at line 109 of file lwip_autoip.c.
Start AutoIP client.
- Parameters:
-
netif network interface on which start the AutoIP client
Definition at line 258 of file lwip_autoip.c.
Stop AutoIP client.
- Parameters:
-
netif network interface on which stop the AutoIP client
Definition at line 353 of file lwip_autoip.c.
Generated on Tue Jul 12 2022 13:55:22 by
