Mistake on this page?
Report an issue in GitHub or email us
Macros

Macros

#define LWIP_ARP   1
 LWIP_ARP==1: Enable ARP functionality. More...
 
#define ARP_TABLE_SIZE   10
 ARP_TABLE_SIZE: Number of active MAC-IP address pairs cached. More...
 
#define ARP_MAXAGE   300
 the time an ARP entry stays valid after its last update, for ARP_TMR_INTERVAL = 1000, this is (60 * 5) seconds = 5 minutes. More...
 
#define ARP_QUEUEING   0
 ARP_QUEUEING==1: Multiple outgoing packets are queued during hardware address resolution. More...
 
#define ARP_QUEUE_LEN   3
 The maximum number of packets which may be queued for each unresolved address by other network layers. More...
 
#define ETHARP_SUPPORT_VLAN   0
 ETHARP_SUPPORT_VLAN==1: support receiving and sending ethernet packets with VLAN header. More...
 
#define LWIP_ETHERNET   LWIP_ARP
 LWIP_ETHERNET==1: enable ethernet support even though ARP might be disabled. More...
 
#define ETH_PAD_SIZE   0
 ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure alignment of payload after that header. More...
 
#define ETHARP_SUPPORT_STATIC_ENTRIES   0
 ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table entries (using etharp_add_static_entry/etharp_remove_static_entry). More...
 
#define ETHARP_TABLE_MATCH_NETIF   !LWIP_SINGLE_NETIF
 ETHARP_TABLE_MATCH_NETIF==1: Match netif for ARP table entries. More...
 

Detailed Description

Macro Definition Documentation

#define ARP_MAXAGE   300

the time an ARP entry stays valid after its last update, for ARP_TMR_INTERVAL = 1000, this is (60 * 5) seconds = 5 minutes.

Definition at line 644 of file opt.h.

#define ARP_QUEUE_LEN   3

The maximum number of packets which may be queued for each unresolved address by other network layers.

Defaults to 3, 0 means disabled. Old packets are dropped, new packets are queued.

Definition at line 663 of file opt.h.

#define ARP_QUEUEING   0

ARP_QUEUEING==1: Multiple outgoing packets are queued during hardware address resolution.

By default, only the most recent packet is queued per IP address. This is sufficient for most protocols and mainly reduces TCP connection startup time. Set this to 1 if you know your application sends more than one packet in a row to an IP address that is not in the ARP cache.

Definition at line 655 of file opt.h.

#define ARP_TABLE_SIZE   10

ARP_TABLE_SIZE: Number of active MAC-IP address pairs cached.

Definition at line 636 of file opt.h.

#define ETH_PAD_SIZE   0

ETH_PAD_SIZE: number of bytes added before the ethernet header to ensure alignment of payload after that header.

Since the header is 14 bytes long, without this padding e.g. addresses in the IP header will not be aligned on a 32-bit boundary, so setting this to 2 can speed up 32-bit-platforms.

Definition at line 692 of file opt.h.

#define ETHARP_SUPPORT_STATIC_ENTRIES   0

ETHARP_SUPPORT_STATIC_ENTRIES==1: enable code to support static ARP table entries (using etharp_add_static_entry/etharp_remove_static_entry).

Definition at line 699 of file opt.h.

#define ETHARP_SUPPORT_VLAN   0

ETHARP_SUPPORT_VLAN==1: support receiving and sending ethernet packets with VLAN header.

See the description of LWIP_HOOK_VLAN_CHECK and LWIP_HOOK_VLAN_SET hooks to check/set VLAN headers. Additionally, you can define ETHARP_VLAN_CHECK to an u16_t VLAN ID to check. If ETHARP_VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted. If ETHARP_VLAN_CHECK is not defined, all traffic is accepted. Alternatively, define a function/define ETHARP_VLAN_CHECK_FN(eth_hdr, vlan) that returns 1 to accept a packet or 0 to drop a packet.

Definition at line 677 of file opt.h.

#define ETHARP_TABLE_MATCH_NETIF   !LWIP_SINGLE_NETIF

ETHARP_TABLE_MATCH_NETIF==1: Match netif for ARP table entries.

If disabled, duplicate IP address on multiple netifs are not supported (but this should only occur for AutoIP).

Definition at line 707 of file opt.h.

#define LWIP_ARP   1

LWIP_ARP==1: Enable ARP functionality.

Definition at line 629 of file opt.h.

#define LWIP_ETHERNET   LWIP_ARP

LWIP_ETHERNET==1: enable ethernet support even though ARP might be disabled.

Definition at line 683 of file opt.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.