lwIP 2.2.0
Lightweight IP stack
|
Functions | |
err_t | acd_add (struct netif *netif, struct acd *acd, acd_conflict_callback_t acd_conflict_callback) |
void | acd_remove (struct netif *netif, struct acd *acd) |
err_t | acd_start (struct netif *netif, struct acd *acd, ip4_addr_t ipaddr) |
err_t | acd_stop (struct acd *acd) |
void | acd_network_changed_link_down (struct netif *netif) |
void | acd_netif_ip_addr_changed (struct netif *netif, const ip_addr_t *old_addr, const ip_addr_t *new_addr) |
ACD related functions USAGE:
define LWIP_ACD 1 in your lwipopts.h Options: ACD_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 ....
For fixed IP:
With AUTOIP:
With DHCP:
err_t acd_add | ( | struct netif * | netif, |
struct acd * | acd, | ||
acd_conflict_callback_t | acd_conflict_callback | ||
) |
Add ACD client to the client list and initialize callback function
netif | network interface on which to start the acd client |
acd | acd module to be added to the list |
acd_conflict_callback | callback to be called when conflict information is available |
void acd_netif_ip_addr_changed | ( | struct netif * | netif, |
const ip_addr_t * | old_addr, | ||
const ip_addr_t * | new_addr | ||
) |
Inform the ACD modules of address changes
netif | network interface on which the address is changing |
old_addr | old ip address |
new_addr | new ip address |
void acd_network_changed_link_down | ( | struct netif * | netif | ) |
Inform the ACD modules when the link goes down
netif | network interface on which to inform the ACD clients |
Remvoe ACD client from the client list
netif | network interface from which to remove the acd client |
acd | acd module to be removed from the list |
err_t acd_start | ( | struct netif * | netif, |
struct acd * | acd, | ||
ip4_addr_t | ipaddr | ||
) |
Start ACD client
netif | network interface on which to start the acd client |
acd | acd module to start |
ipaddr | ip address to perform acd on |