Microchip® Advanced Software Framework

ip64-arp.h File Reference
#include "net/ip/uip.h"
#include "ip64-eth.h"

Functions

uint16_t ip64_arp_arp_input (const uint8_t *packet, uint16_t packet_len)
 
int ip64_arp_check_cache (const uint8_t *nlhdr)
 
int ip64_arp_create_arp_request (uint8_t *link_header, const uint8_t *network_header)
 
int ip64_arp_create_ethhdr (uint8_t *link_header, const uint8_t *network_header)
 
void ip64_arp_init (void)
 Initialize the ARP module. More...
 
void ip64_arp_ip_input (const uint8_t *packet, uint16_t packet_len)
 
void ip64_arp_ip_output (uint8_t *packet, uint16_t packet_len)
 
void ip64_arp_timer (void)
 Periodic ARP processing function. More...
 

void ip64_arp_init ( void  )

Initialize the ARP module.

References arp_table, i, ipaddr, and UIP_ARPTAB_SIZE.

void ip64_arp_ip_input ( const uint8_t *  packet,
uint16_t  packet_len 
)
void ip64_arp_ip_output ( uint8_t *  packet,
uint16_t  packet_len 
)
void ip64_arp_timer ( void  )

Periodic ARP processing function.

This function performs periodic timer processing in the ARP module and should be called at regular intervals. The recommended interval is 10 seconds between the calls.

References arp_table, arptime, i, arp_entry::ipaddr, arp_entry::time, UIP_ARP_MAXAGE, UIP_ARPTAB_SIZE, and uip_ip4addr_cmp.