Rtos API example
autoip.h File Reference
AutoIP Automatic LinkLocal IP Configuration. More...
Go to the source code of this file.
Data Structures | |
struct | autoip |
AutoIP state information per netif. 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. | |
void | autoip_arp_reply (struct netif *netif, struct etharp_hdr *hdr) |
Handles every incoming ARP Packet, called by etharp_input(). | |
void | autoip_tmr (void) |
Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds. | |
void | autoip_network_changed (struct netif *netif) |
Handle a possible change in the network configuration. | |
u8_t | autoip_supplied_address (const struct netif *netif) |
check if AutoIP supplied netif->ip_addr |
Detailed Description
AutoIP Automatic LinkLocal IP Configuration.
Definition in file autoip.h.
Function Documentation
void autoip_arp_reply | ( | struct netif * | netif, |
struct etharp_hdr * | hdr | ||
) |
Handles every incoming ARP Packet, called by etharp_input().
- Parameters:
-
netif network interface to use for autoip processing hdr Incoming ARP packet
Definition at line 453 of file lwip_autoip.c.
void autoip_network_changed | ( | struct netif * | netif ) |
Handle a possible change in the network configuration.
If there is an AutoIP address configured, take the interface down and begin probing with the same address.
Definition at line 332 of file lwip_autoip.c.
u8_t autoip_supplied_address | ( | const struct netif * | netif ) |
check if AutoIP supplied netif->ip_addr
- Parameters:
-
netif the netif to check
- Returns:
- 1 if AutoIP supplied netif->ip_addr (state BOUND or ANNOUNCING), 0 otherwise
Definition at line 511 of file lwip_autoip.c.
void autoip_tmr | ( | void | ) |
Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds.
Definition at line 365 of file lwip_autoip.c.
Generated on Sun Jul 17 2022 08:25:34 by 1.7.2