DESERT 3.5.1
Loading...
Searching...
No Matches
UWARPTable Class Reference

#include <marptable.h>

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.

Definition at line 94 of file marptable.h.

Constructor & Destructor Documentation

◆ UWARPTable()

UWARPTable::UWARPTable ( )

Constructor.

Definition at line 46 of file marptable.cpp.

◆ ~UWARPTable()

UWARPTable::~UWARPTable ( )

Desctructor.

Definition at line 50 of file marptable.cpp.

Member Function Documentation

◆ addEntry()

void UWARPTable::addEntry ( UWARPEntry entry)

Add entry to ARP table.

Parameters
entryUWARPEntry to add

Definition at line 55 of file marptable.cpp.

◆ clear()

void UWARPTable::clear ( )

Remove all entries in table.

Definition at line 72 of file marptable.cpp.

◆ 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

Definition at line 61 of file marptable.cpp.

Member Data Documentation

◆ table_

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

The ARP table as an associative array.

Definition at line 122 of file marptable.h.


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