DESERT 4.0.0
UWARPTable Class Reference

#include <marptable.h>

Collaboration diagram for UWARPTable:
Collaboration graph

Public Member Functions

 UWARPTable ()
 
 ~UWARPTable ()
 
void addEntry (UWARPEntry *entry)
 
UWARPEntrylookup (nsaddr_t addr)
 
void clear ()
 

Private Attributes

map< nsaddr_t, UWARPEntry * > table_
 

Detailed Description

ARP table

Constructor & Destructor Documentation

◆ UWARPTable()

UWARPTable::UWARPTable ( )

Constructor

◆ ~UWARPTable()

UWARPTable::~UWARPTable ( )

Desctructor

Member Function Documentation

◆ addEntry()

void UWARPTable::addEntry ( UWARPEntry entry)

Add entry to ARP table

Parameters
entryUWARPEntry to add

References UWARPEntry::ipaddr_, and table_.

Referenced by UWMllModule::command().

◆ clear()

void UWARPTable::clear ( )

Remove all entries in table

References table_.

Referenced by UWMllModule::command().

◆ lookup()

UWARPEntry * UWARPTable::lookup ( nsaddr_t  addr)

Lookup entry in table

Parameters
addrnetwork address to look for
Returns
If entry found, a pointer to an UWARPEntry, else null

References table_.

Referenced by UWMllModule::arpResolve().

Member Data Documentation

◆ table_

map<nsaddr_t, UWARPEntry *> UWARPTable::table_
private

The ARP table as an associative array

Referenced by addEntry(), clear(), and lookup().


The documentation for this class was generated from the following files: