Microchip® Advanced Software Framework

uip_arp.c File Reference

Implementation of the ARP Address Resolution Protocol.

Author
Adam Dunkels adam@.nosp@m.dunk.nosp@m.els.c.nosp@m.om
#include "net/ipv4/uip_arp.h"
#include <string.h>

Data Structures

struct  arp_entry
 
struct  arp_hdr
 
struct  ethip_hdr
 

Macros

#define _DEBUG_   0
 
#define ARP_HWTYPE_ETH   1
 
#define ARP_REPLY   2
 
#define ARP_REQUEST   1
 
#define BUF   ((struct arp_hdr *)&uip_buf[0])
 
#define IPBUF   ((struct ethip_hdr *)&uip_buf[0])
 
#define PRINTF(...)
 

Functions

void uip_arp_arpin (void)
 ARP processing for incoming IP packets. More...
 
void uip_arp_init (void)
 Initialize the ARP module. More...
 
void uip_arp_out (void)
 Prepend Ethernet header to an outbound IP packet and see if we need to send out an ARP request. More...
 
void uip_arp_timer (void)
 Periodic ARP processing function. More...
 
static void uip_arp_update (uip_ipaddr_t *ipaddr, struct uip_eth_addr *ethaddr)
 

Variables

static struct arp_entry arp_table [UIP_ARPTAB_SIZE]
 
static uint8_t arptime
 
static struct uip_eth_addr broadcast_ethaddr
 
static uint8_t c
 
static uint8_t i
 
static uip_ipaddr_t ipaddr
 
static uint8_t tmpage