#include <wvipaliaser.h>
Public Member Functions | |
WvIPAliaser () | |
~WvIPAliaser () | |
void | dump () |
void | start_edit () |
void | add (const WvIPAddr &ip) |
void | done_edit () |
WvIPAliaser () | |
~WvIPAliaser () | |
void | dump () |
void | start_edit () |
void | add (const WvIPAddr &ip) |
void | done_edit () |
Private Member Functions | |
WvIPAliaser::Alias * | ipsearch (WvIPAliaser::AliasList &l, const WvIPAddr &ip) |
DeclareWvList (Alias) | |
WvIPAliaser::Alias * | ipsearch (WvIPAliaser::AliasList &l, const WvIPAddr &ip) |
Private Attributes | |
AliasList | aliases |
WvInterfaceDict | interfaces |
Static Private Attributes | |
AliasList | all_aliases |
Definition at line 18 of file include/wvipaliaser.h.
|
Definition at line 72 of file wvipaliaser.cc. References interfaces. |
|
Definition at line 78 of file wvipaliaser.cc. References done_edit(), and start_edit(). |
|
|
|
|
|
|
|
Definition at line 124 of file wvipaliaser.cc. References aliases, all_aliases, WvList< Alias >::append(), interfaces, ipsearch(), WvInterfaceDict::islocal(), and WvIPAliaser::Alias::link_count. |
|
|
|
|
|
Definition at line 150 of file wvipaliaser.cc. References WvIPAliaser::Alias::link_count. Referenced by ~WvIPAliaser(). |
|
|
|
Definition at line 166 of file wvipaliaser.cc. References WvIPAliaser::Alias::index, WvIPAliaser::Alias::ip, and WvIPAliaser::Alias::link_count. |
|
|
|
Definition at line 109 of file wvipaliaser.cc. Referenced by add(). |
|
you must call start_edit() once, then add() any number of times, then done_edit() once, to change your aliases. The addresses add()ed during the session become the _only_ ones that are aliases by this WvIPAliaser instance. Why bother? This way, WvIPAliaser can see all the desired aliases when they are being changed, and only delete previously-added ones if they are no longer used. This is important, since if eg. Fast Forward has an open connection through 1.2.3.4, and we want to add 1.2.3.5 and delete 1.2.3.3, Fast Forward need not remember that it was using 1.2.3.3 but 1.2.3.4 does not get deleted, even temporarily. If that was too confusing, just remember: call these functions in the order they appear below, always. |
|
you must call start_edit() once, then add() any number of times, then done_edit() once, to change your aliases. The addresses add()ed during the session become the _only_ ones that are aliases by this WvIPAliaser instance. Why bother? This way, WvIPAliaser can see all the desired aliases when they are being changed, and only delete previously-added ones if they are no longer used. This is important, since if eg. Fast Forward has an open connection through 1.2.3.4, and we want to add 1.2.3.5 and delete 1.2.3.3, Fast Forward need not remember that it was using 1.2.3.3 but 1.2.3.4 does not get deleted, even temporarily. If that was too confusing, just remember: call these functions in the order they appear below, always. Definition at line 86 of file wvipaliaser.cc. References aliases, interfaces, WvInterfaceDict::update(), and WvList< Alias >::zap(). Referenced by ~WvIPAliaser(). |
|
Definition at line 32 of file ipstreams/wvipaliaser.h. Referenced by add(), start_edit(), and WvIPAliaser::AliasList::~AliasList(). |
|
Definition at line 31 of file ipstreams/wvipaliaser.h. Referenced by add(), and WvIPAliaser::AliasList::~AliasList(). |
|
Definition at line 33 of file ipstreams/wvipaliaser.h. Referenced by add(), start_edit(), WvIPAliaser(), and WvIPAliaser::AliasList::~AliasList(). |