Kea 2.7.6
|
Holds optional information about relay. More...
#include <network.h>
Public Member Functions | |
void | addAddress (const asiolink::IOAddress &addr) |
Adds an address to the list of addresses. | |
bool | containsAddress (const asiolink::IOAddress &addr) const |
Checks the address list for the given address. | |
const IOAddressList & | getAddresses () const |
Returns const reference to the list of addresses. | |
bool | hasAddresses () const |
Indicates whether or not the address list has entries. | |
Holds optional information about relay.
In some cases it is beneficial to have additional information about a relay configured in the subnet. For now, the structure holds only IP addresses, but there may potentially be additional parameters added later, e.g. relay interface-id or relay-id.
void isc::dhcp::Network::RelayInfo::addAddress | ( | const asiolink::IOAddress & | addr | ) |
Adds an address to the list of addresses.
addr | address to add |
BadValue | if the address is already in the list |
Definition at line 23 of file network.cc.
References containsAddress(), isc_throw, and isc::asiolink::IOAddress::toText().
Referenced by isc::dhcp::Network::addRelayAddress().
bool isc::dhcp::Network::RelayInfo::containsAddress | ( | const asiolink::IOAddress & | addr | ) | const |
Checks the address list for the given address.
Definition at line 38 of file network.cc.
Referenced by addAddress(), and isc::dhcp::Network::hasRelayAddress().
const IOAddressList & isc::dhcp::Network::RelayInfo::getAddresses | ( | ) | const |
Returns const reference to the list of addresses.
Definition at line 44 of file network.cc.
Referenced by isc::dhcp::Network::getRelayAddresses().
bool isc::dhcp::Network::RelayInfo::hasAddresses | ( | ) | const |
Indicates whether or not the address list has entries.
Definition at line 33 of file network.cc.
Referenced by isc::dhcp::Network::hasRelays().