Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

WvInterfaceDict Class Reference

#include <wvinterface.h>

Collaboration diagram for WvInterfaceDict:

[legend]
List of all members.

Public Member Functions

 WvInterfaceDict ()
 ~WvInterfaceDict ()
void update ()
bool islocal (const WvAddr &addr)
bool on_local_net (const WvIPNet &addr)
WvInterfaceoperator[] (WvStringParm str)

Public Attributes

WvLog log

Static Public Attributes

WvInterfaceDictBase slist
int links = 0

Constructor & Destructor Documentation

WvInterfaceDict::WvInterfaceDict  ) 
 

Definition at line 584 of file wvinterface.cc.

References links, log, and update().

WvInterfaceDict::~WvInterfaceDict  ) 
 

Definition at line 591 of file wvinterface.cc.

References links, and slist.


Member Function Documentation

bool WvInterfaceDict::islocal const WvAddr addr  ) 
 

Definition at line 676 of file wvinterface.cc.

References WvIPNet::base(), WvIPNet::broadcast(), WvInterface::hwaddr(), WvInterface::ipaddr(), islocal(), and WvInterface::valid.

Referenced by WvIPAliaser::add(), islocal(), and on_local_net().

bool WvInterfaceDict::on_local_net const WvIPNet addr  ) 
 

Definition at line 701 of file wvinterface.cc.

References WvIPNet::includes(), WvInterface::ipaddr(), islocal(), WvInterface::isup(), on_local_net(), and WvInterface::valid.

Referenced by on_local_net().

WvInterface* WvInterfaceDict::operator[] WvStringParm  str  )  [inline]
 

Definition at line 143 of file wvinterface.h.

References slist, and WvStringParm.

void WvInterfaceDict::update  ) 
 

Definition at line 605 of file wvinterface.cc.

References find_ifname(), WvStream::getline(), WvInterface::hwaddr(), log, log, WvInterface::rescan(), slist, WvLog::split(), and WvInterface::valid.

Referenced by WvIPAliaser::start_edit(), and WvInterfaceDict().


Member Data Documentation

int WvInterfaceDict::links = 0 [static]
 

Definition at line 28 of file wvinterface.cc.

Referenced by WvInterfaceDict(), and ~WvInterfaceDict().

WvLog WvInterfaceDict::log
 

Definition at line 124 of file wvinterface.h.

Referenced by update().

WvInterfaceDictBase WvInterfaceDict::slist [static]
 

Referenced by operator[](), update(), and ~WvInterfaceDict().


The documentation for this class was generated from the following files:
Generated on Tue Oct 5 01:09:27 2004 for WvStreams by doxygen 1.3.7