A version of LWIP, provided for backwards compatibility.

Dependents:   AA_DemoBoard DemoBoard HelloServerDemo DemoBoard_RangeIndicator ... more

Embed: (wiki syntax)

« Back to documentation index

autoip.c File Reference

autoip.c File Reference

AutoIP Automatic LinkLocal IP Configuration. More...

Go to the source code of this file.

Functions

static void autoip_handle_arp_conflict (struct netif *netif)
 Handle a IP address conflict after an ARP conflict detection.
static void autoip_create_addr (struct netif *netif, struct ip_addr *IPAddr)
 Create an IP-Address out of range 169.254.1.0 to 169.254.254.255.
static err_t autoip_arp_announce (struct netif *netif)
 Sends an ARP announce from a network interface.
static err_t autoip_bind (struct netif *netif)
 Configure interface for use with current LL IP-Address.
void autoip_init (void)
 Initialize this module.
err_t autoip_start (struct netif *netif)
 Start AutoIP client.
err_t autoip_stop (struct netif *netif)
 Stop AutoIP client.
void autoip_tmr ()
 Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds.
void autoip_arp_reply (struct netif *netif, struct etharp_hdr *hdr)
 Handles every incoming ARP Packet, called by etharp_arp_input.

Detailed Description

AutoIP Automatic LinkLocal IP Configuration.

Definition in file tag/7/Core/lwIP/core/ipv4/autoip.c.


Function Documentation

static err_t autoip_arp_announce ( struct netif netif ) [static]

Sends an ARP announce from a network interface.

Parameters:
netifnetwork interface used to send the announce

Definition at line 200 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

void autoip_arp_reply ( struct netif netif,
struct etharp_hdr hdr 
)

Handles every incoming ARP Packet, called by etharp_arp_input.

Parameters:
netifnetwork interface to use for autoip processing
hdrIncoming ARP packet

Definition at line 398 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

static err_t autoip_bind ( struct netif netif ) [static]

Configure interface for use with current LL IP-Address.

Parameters:
netifnetwork interface to configure with current LL IP-Address

Definition at line 213 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

static void autoip_create_addr ( struct netif netif,
struct ip_addr *  IPAddr 
) [static]

Create an IP-Address out of range 169.254.1.0 to 169.254.254.255.

Parameters:
netifnetwork interface on which create the IP-Address
IPAddrip address to initialize

Definition at line 168 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

static void autoip_handle_arp_conflict ( struct netif netif ) [static]

Handle a IP address conflict after an ARP conflict detection.

Definition at line 132 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

void autoip_init ( void   )

Initialize this module.

Init srand, has to be called before entering mainloop.

Definition at line 123 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

err_t autoip_start ( struct netif netif )

Start AutoIP client.

Parameters:
netifnetwork interface on which start the AutoIP client

Definition at line 241 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

err_t autoip_stop ( struct netif netif )

Stop AutoIP client.

Parameters:
netifnetwork interface on which stop the AutoIP client

Definition at line 312 of file tag/7/Core/lwIP/core/ipv4/autoip.c.

void autoip_tmr ( void   )

Has to be called in loop every AUTOIP_TMR_INTERVAL milliseconds.

Definition at line 323 of file tag/7/Core/lwIP/core/ipv4/autoip.c.