Documentation

Documentation

Includes

lwip/opt.h

#include "lwip/opt.h"
#include "lwip/opt.h"

lwip/pbuf.h

#include "lwip/pbuf.h"
#include "lwip/pbuf.h"

lwip/ip4_addr.h

#include "lwip/ip4_addr.h"
#include "lwip/ip4_addr.h"

lwip/netif.h

#include "lwip/netif.h"
#include "lwip/netif.h"

lwip/ip4.h

#include "lwip/ip4.h"
#include "lwip/ip4.h"

lwip/prot/ethernet.h

#include "lwip/prot/ethernet.h"
#include "lwip/prot/ethernet.h"

lwip/prot/etharp.h

#include "lwip/prot/etharp.h"
#include "lwip/prot/etharp.h"

Macros

Marco LWIP_HDR_NETIF_ETHARP_H

#define LWIP_HDR_NETIF_ETHARP_H


      

Marco ARP_TMR_INTERVAL

#define ARP_TMR_INTERVAL 1000
/** 1 seconds period */

Marco etharp_init()

#define etharp_init() /* Compatibility define, no init needed. */


      

Marco etharp_gratuitous(netif)

#define etharp_gratuitous(netif) etharp_request((netif), netif_ip4_addr(netif))
/** For Ethernet network interfaces, we might want to send "gratuitous ARP";
 *  this is an ARP packet sent by a node in order to spontaneously cause other
 *  nodes to update an entry in their ARP cache.
 *  From RFC 3220 "IP Mobility Support for IPv4" section 4.6. */

Functions

Func etharp_tmr

void etharp_tmr(void);


      

Func etharp_find_addr

ssize_t etharp_find_addr(struct netif *netif, const ip4_addr_t *ipaddr,
        struct eth_addr **eth_ret, const ip4_addr_t **ip_ret);


      

Func etharp_get_entry

int etharp_get_entry(size_t i, ip4_addr_t **ipaddr, struct netif **netif, struct eth_addr **eth_ret);


      

Func etharp_output

err_t etharp_output(struct netif *netif, struct pbuf *q, const ip4_addr_t *ipaddr);


      

Func etharp_query

err_t etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q);


      

Func etharp_request

err_t etharp_request(struct netif *netif, const ip4_addr_t *ipaddr);


      

Func etharp_cleanup_netif

void etharp_cleanup_netif(struct netif *netif);


      

Func etharp_add_static_entry

err_t etharp_add_static_entry(const ip4_addr_t *ipaddr, struct eth_addr *ethaddr);


      

Func etharp_remove_static_entry

err_t etharp_remove_static_entry(const ip4_addr_t *ipaddr);


      

Func etharp_input

void etharp_input(struct pbuf *p, struct netif *netif);

      

Vars

Consts

Types

Typedefs