21 #ifndef _FNET_AUTOIP_H_ 22 #define _FNET_AUTOIP_H_ 24 #if FNET_CFG_AUTOIP || defined(__DOXYGEN__) 61 #define FNET_AUTOIP_NETWORK FNET_IP4_ADDR_INIT(169U, 254U, 0U, 0U) 67 #define FNET_AUTOIP_NETMASK FNET_IP4_ADDR_INIT(255U, 255U, 0U, 0U) fnet_bool_t fnet_autoip_is_enabled(fnet_autoip_desc_t desc)
Detects if the Auto-IP service is enabled or disabled.
void fnet_autoip_release(fnet_autoip_desc_t desc)
Releases the Auto-IP service.
void(* fnet_autoip_callback_t)(fnet_autoip_desc_t desc, fnet_netif_desc_t netif, void *cookie)
Auto-IP event handler callback function prototype, that is called when the Auto-IP service has update...
fnet_autoip_desc_t fnet_autoip_get_by_netif(fnet_netif_desc_t netif)
Looks for a Auto-IP service assigned to the specified network interface.
fnet_autoip_desc_t fnet_autoip_init(fnet_autoip_params_t *params)
Initializes the Auto-IP service.
fnet_netif_desc_t netif_desc
Network interface descriptor to be used by the Link-Local service.
void * fnet_autoip_desc_t
Auto-IP service descriptor.
fnet_uint32_t fnet_ip4_addr_t
32-bit IPv4 address type.
fnet_ip4_addr_t ip_address
Suggested IP address. For example, it may be used for the case when the network media indicates that ...
void fnet_autoip_set_callback_probe(fnet_autoip_desc_t desc, fnet_autoip_callback_t callback_probe, void *param)
Registers the "Address probing" Auto-IP event handler callback.
Initialization parameters for the fnet_autoip_init() function.
void * fnet_netif_desc_t
Network interface descriptor.
void fnet_autoip_set_callback_updated(fnet_autoip_desc_t desc, fnet_autoip_callback_t callback_updated, void *cookie)
Registers the "IPv4 parameters updated" Auto-IP event handler callback.