#include <wvipaliaser.h>
Collaboration diagram for WvIPAliaser:
Multiple instances of the object can be created, and they will share aliases between them. Aliased addresses are only removed when all WvIPAliaser objects using that address give it up. (ie. the object is destroyed, or the Aliaser is reconfigured without including that address)
Definition at line 19 of file wvipaliaser.h.
Public Member Functions | |
WvIPAliaser () | |
~WvIPAliaser () | |
void | dump () |
void | start_edit () |
you must call start_edit() once, then add() any number of times, then done_edit() once, to change your aliases. | |
void | add (const WvIPAddr &ip) |
void | done_edit () |
|
Definition at line 72 of file wvipaliaser.cc. |
|
Definition at line 78 of file wvipaliaser.cc. References done_edit(), and start_edit(). |
|
Definition at line 124 of file wvipaliaser.cc. References WvInterfaceDict::islocal(). |
|
Definition at line 150 of file wvipaliaser.cc. Referenced by ~WvIPAliaser(). |
|
Definition at line 166 of file wvipaliaser.cc. References log. |
|
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 WvInterfaceDict::update(). Referenced by ~WvIPAliaser(). |