lwIP
2.1.0
Lightweight IP stack
|
Data Structures | |
struct | autoip |
Macros | |
#define | AUTOIP_TMR_INTERVAL 100 |
#define | autoip_remove_struct(netif) do { (netif)->autoip = NULL; } while (0) |
Functions | |
void | autoip_set_struct (struct netif *netif, struct autoip *autoip) |
err_t | autoip_start (struct netif *netif) |
err_t | autoip_stop (struct netif *netif) |
void | autoip_arp_reply (struct netif *netif, struct etharp_hdr *hdr) |
void | autoip_tmr (void) |
void | autoip_network_changed (struct netif *netif) |
u8_t | autoip_supplied_address (const struct netif *netif) |
AutoIP Automatic LinkLocal IP Configuration
Remove a struct autoip previously set to the netif using autoip_set_struct()
#define AUTOIP_TMR_INTERVAL 100 |
AutoIP Timing
void autoip_arp_reply | ( | struct netif * | netif, |
struct etharp_hdr * | hdr | ||
) |
Handles every incoming ARP Packet, called by etharp_input().
netif | network interface to use for autoip processing |
hdr | Incoming ARP packet |
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.
u8_t autoip_supplied_address | ( | const struct netif * | netif | ) |
void autoip_tmr | ( | void | ) |
Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds