CS43 Lab7 - A Router Stack
1.2019
|
An ARP cache which tracks IP/MAC mappings, as well as outstanding ARP requests. More...
#include <sr_arpcache.h>
Public Attributes | |
struct sr_arpentry | entries [SR_ARPCACHE_SZ] |
The list of cached IP/MAC mappings. More... | |
struct sr_arpreq * | requests |
The linked list of outstanding ARP requests. More... | |
pthread_mutex_t | lock |
A lock to ensure that the cache isn't concurrently modified by multiple threads, you shouldn't need to use this, the starter code handles it for you. More... | |
pthread_mutexattr_t | attr |
Attributes for the mutex lock, you shouldn't need to use this, the starter code handles it for you. More... | |
An ARP cache which tracks IP/MAC mappings, as well as outstanding ARP requests.
pthread_mutexattr_t sr_arpcache::attr |
Attributes for the mutex lock, you shouldn't need to use this, the starter code handles it for you.
struct sr_arpentry sr_arpcache::entries[SR_ARPCACHE_SZ] |
The list of cached IP/MAC mappings.
pthread_mutex_t sr_arpcache::lock |
A lock to ensure that the cache isn't concurrently modified by multiple threads, you shouldn't need to use this, the starter code handles it for you.
struct sr_arpreq* sr_arpcache::requests |
The linked list of outstanding ARP requests.