#include <marptable.h>
Public Member Functions | |
MARPTable () | |
~MARPTable () | |
void | addEntry (MARPEntry *entry) |
MARPEntry * | lookup (nsaddr_t addr) |
void | clear () |
Private Attributes | |
map< nsaddr_t, MARPEntry * > | table_ |
Definition at line 73 of file marptable.h.
MARPTable::MARPTable | ( | ) |
Constructor
Definition at line 33 of file marptable.cc.
MARPTable::~MARPTable | ( | ) |
Desctructor
Definition at line 37 of file marptable.cc.
void MARPTable::addEntry | ( | MARPEntry * | entry | ) |
Add entry to ARP table
entry | MARPEntry to add |
Definition at line 41 of file marptable.cc.
References MARPEntry::ipaddr_, and table_.
Referenced by MLLModule::arpResolve(), MLLModule::command(), and MLLModule::processARP().
MARPEntry * MARPTable::lookup | ( | nsaddr_t | addr | ) |
Lookup entry in table
addr | network address to look for |
Definition at line 46 of file marptable.cc.
References table_.
Referenced by MLLModule::arpResolve(), and MLLModule::processARP().
void MARPTable::clear | ( | ) |
Remove all entries in table
Definition at line 56 of file marptable.cc.
References table_.
Referenced by MLLModule::command().
map<nsaddr_t, MARPEntry*> MARPTable::table_ [private] |
The ARP table as an associative array
Definition at line 100 of file marptable.h.
Referenced by addEntry(), clear(), and lookup().