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

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_arpreqrequests
 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...
 

Detailed Description

An ARP cache which tracks IP/MAC mappings, as well as outstanding ARP requests.

Member Data Documentation

◆ attr

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.

◆ entries

struct sr_arpentry sr_arpcache::entries[SR_ARPCACHE_SZ]

The list of cached IP/MAC mappings.

◆ lock

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.

◆ requests

struct sr_arpreq* sr_arpcache::requests

The linked list of outstanding ARP requests.


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