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.
Fork of Bonjour by
autoip.h File Reference
AutoIP Automatic LinkLocal IP Configuration. More...
Go to the source code of this file.
Functions | |
void | autoip_init (void) |
Init srand, has to be called before entering mainloop. | |
void | autoip_set_struct (struct netif *netif, struct autoip *autoip) |
Set a struct autoip allocated by the application 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_arp_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. |
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_arp_input.
- Parameters:
-
netif network interface to use for autoip processing hdr Incoming ARP packet
Definition at line 476 of file autoip.cpp.
void autoip_init | ( | void | ) |
Init srand, has to be called before entering mainloop.
Definition at line 129 of file autoip.cpp.
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 365 of file autoip.cpp.
void autoip_set_struct | ( | struct netif * | netif, |
struct autoip * | autoip | ||
) |
Set a struct autoip allocated by the application to work with.
Set a struct autoip allocated by the application 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 dhcp (uninitialised) dhcp struct allocated by the application
Definition at line 141 of file autoip.cpp.
err_t autoip_start | ( | struct netif * | netif ) |
Start AutoIP client.
- Parameters:
-
netif network interface on which start the AutoIP client
Definition at line 282 of file autoip.cpp.
err_t autoip_stop | ( | struct netif * | netif ) |
Stop AutoIP client.
- Parameters:
-
netif network interface on which stop the AutoIP client
Definition at line 379 of file autoip.cpp.
void autoip_tmr | ( | void | ) |
Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds.
Definition at line 390 of file autoip.cpp.
Generated on Tue Jul 12 2022 18:11:33 by
