Main Page   Modules   Data Structures   File List   Data Fields   Globals   Related Pages   Examples  

arp_entry Struct Reference


Detailed Description

This structure contains various fields used for managing ARP cache.

Definition at line 146 of file arp.h.

Data Fields

UINT8 state
 State of this ARP cache entry.

UINT8 type
 Type of this ARP cache entry.

UINT8 retries
UINT8 ttl
UINT8 hwadr [MAXHWALEN]
UINT32 pradr


Field Documentation

UINT8 arp_entry::state
 

Holds information about the state of this ARP cache entry. Can hold one of the following values:

  • ARP_FREE - entry unused and available
  • ARP_RESERVED - entry reserved by arp_alloc call
  • ARP_PENDING - waiting for ARP reply to get the HW address
  • ARP_RESOLVED - entry resolved and HW address available

Definition at line 157 of file arp.h.

Referenced by arp_add(), arp_alloc(), arp_find(), arp_get_response(), arp_init(), and arp_manage().

UINT8 arp_entry::type
 

Type of the entry defines what the ARP cache manager will do after the TTL period. Can be one of the following:

  • ARP_FIXED_IP - ARP cache entry is refreshed after TTL
  • ARP_TEMP_IP - ARP cache entry is deleted after TTL

Definition at line 167 of file arp.h.

Referenced by arp_alloc(), arp_init(), and arp_manage().

UINT8 arp_entry::retries
 

Number of retries left (how many ARP requests more will be sent in order to try to resolve the IP address)

Definition at line 168 of file arp.h.

Referenced by arp_add(), arp_find(), arp_get_response(), arp_init(), and arp_manage().

UINT8 arp_entry::ttl
 

Time To Live value for this cache entry

Definition at line 172 of file arp.h.

Referenced by arp_add(), arp_find(), arp_get_response(), arp_init(), and arp_manage().

UINT8 arp_entry::hwadr[MAXHWALEN]
 

Hardware Address that is received either as an ARP reply or by caching the address of a received IP packet

Definition at line 175 of file arp.h.

Referenced by arp_add(), arp_find(), arp_get_response(), arp_init(), and process_ip_out().

UINT32 arp_entry::pradr
 

Protocol Address (IP protocol assumed)

Definition at line 179 of file arp.h.

Referenced by arp_add(), arp_find(), arp_get_response(), arp_init(), arp_manage(), and arp_send_req().


The documentation for this struct was generated from the following file:
Generated on Sun Aug 3 20:33:01 2003 for OpenTCP by doxygen1.2.18