MARPTable Class Reference

#include <marptable.h>

List of all members.

Public Member Functions

 MARPTable ()
 ~MARPTable ()
void addEntry (MARPEntry *entry)
MARPEntrylookup (nsaddr_t addr)
void clear ()

Private Attributes

map< nsaddr_t, MARPEntry * > table_


Detailed Description

ARP table

Definition at line 73 of file marptable.h.


Constructor & Destructor Documentation

MARPTable::MARPTable (  ) 

Constructor

Definition at line 33 of file marptable.cc.

MARPTable::~MARPTable (  ) 

Desctructor

Definition at line 37 of file marptable.cc.


Member Function Documentation

void MARPTable::addEntry ( MARPEntry entry  ) 

Add entry to ARP table

Parameters:
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

Parameters:
addr network address to look for
Returns:
If entry found, a pointer to an MARPEntry, else null

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().


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Wed Nov 26 15:48:56 2008 for NS-MIRACLE library by  doxygen 1.5.2