CS43 Lab7 - A Router Stack  1.2019
Public Attributes | List of all members
sr_arpentry Struct Reference

An entry in the ARP cache. More...

#include <sr_arpcache.h>

Public Attributes

unsigned char mac [6]
 MAC address of the MAC/IP mapping. More...
 
uint32_t ip
 IP addr in network byte order of the MAC/IP mapping. More...
 
time_t added
 Time that the entry was added. More...
 
int valid
 Boolean indicating whether or not the entry is valid. More...
 

Detailed Description

An entry in the ARP cache.

Member Data Documentation

◆ added

time_t sr_arpentry::added

Time that the entry was added.

The entry invalidated after SR_ARPCACHE_TO seconds. This is already tracked for you.

◆ ip

uint32_t sr_arpentry::ip

IP addr in network byte order of the MAC/IP mapping.

◆ mac

unsigned char sr_arpentry::mac[6]

MAC address of the MAC/IP mapping.

◆ valid

int sr_arpentry::valid

Boolean indicating whether or not the entry is valid.

This is already tracked for you


The documentation for this struct was generated from the following file: