![]() |
Kea
1.5.0
|
Interface for retrieving writable host reservations. More...
#include <writable_host_data_source.h>
Inheritance diagram for isc::dhcp::WritableHostDataSource:Public Member Functions | |
| virtual | ~WritableHostDataSource () |
| Default destructor implementation. More... | |
| virtual HostPtr | get4 (const SubnetID &subnet_id, const Host::IdentifierType &identifier_type, const uint8_t *identifier_begin, const size_t identifier_len)=0 |
| Returns a host connected to the IPv4 subnet. More... | |
| virtual HostPtr | get6 (const SubnetID &subnet_id, const Host::IdentifierType &identifier_type, const uint8_t *identifier_begin, const size_t identifier_len)=0 |
| Returns a host connected to the IPv6 subnet. More... | |
| virtual HostPtr | get6 (const asiolink::IOAddress &prefix, const uint8_t prefix_len)=0 |
| Returns a host using the specified IPv6 prefix. More... | |
| virtual HostPtr | get6 (const SubnetID &subnet_id, const asiolink::IOAddress &address)=0 |
| Returns a host connected to the IPv6 subnet and having a reservation for a specified IPv6 address or prefix. More... | |
| virtual HostCollection | getAll (const Host::IdentifierType &identifier_type, const uint8_t *identifier_begin, const size_t identifier_len)=0 |
Non-const version of the getAll const method. More... | |
| virtual HostCollection | getAll4 (const asiolink::IOAddress &address)=0 |
| Returns a collection of hosts using the specified IPv4 address. More... | |
Interface for retrieving writable host reservations.
This interface specifies the methods which return pointers to the Host objects, which can be modified. Deriving from this interface is needed if the class implementation must return the pointers to the objects which may be modified by the caller. Such classes usually also derive from the BaseHostDataSource to implement methods which return the const objects.
Definition at line 21 of file writable_host_data_source.h.
|
inlinevirtual |
Default destructor implementation.
Definition at line 25 of file writable_host_data_source.h.
|
pure virtual |
Returns a host connected to the IPv4 subnet.
| subnet_id | Subnet identifier. |
| identifier_type | Identifier type. |
| identifier_begin | Pointer to a beginning of a buffer containing an identifier. |
| identifier_len | Identifier length. |
Host object for which reservation has been made using the specified identifier. Implemented in isc::dhcp::CfgHosts.
|
pure virtual |
Returns a host connected to the IPv6 subnet.
| subnet_id | Subnet identifier. |
| identifier_type | Identifier type. |
| identifier_begin | Pointer to a beginning of a buffer containing an identifier. |
| identifier_len | Identifier length. |
Host object for which reservation has been made using the specified identifier. Implemented in isc::dhcp::CfgHosts.
|
pure virtual |
Returns a host using the specified IPv6 prefix.
| prefix | IPv6 prefix for which the Host object is searched. |
| prefix_len | IPv6 prefix length. |
Host object using a specified IPv6 prefix. Implemented in isc::dhcp::CfgHosts.
|
pure virtual |
Returns a host connected to the IPv6 subnet and having a reservation for a specified IPv6 address or prefix.
| subnet_id | Subnet identifier. |
| address | reserved IPv6 address/prefix. |
Host object using a specified IPv6 address/prefix. Implemented in isc::dhcp::CfgHosts.
|
pure virtual |
Non-const version of the getAll const method.
This method returns all Host objects which represent reservations for a specified identifier. This method may return multiple hosts because a particular client may have reservations in multiple subnets.
| identifier_type | Identifier type. |
| identifier_begin | Pointer to a beginning of a buffer containing an identifier. |
| identifier_len | Identifier length. |
Host objects. Implemented in isc::dhcp::CfgHosts.
|
pure virtual |
Returns a collection of hosts using the specified IPv4 address.
This method may return multiple Host objects if they are connected to different subnets.
| address | IPv4 address for which the Host object is searched. |
Host objects. Implemented in isc::dhcp::CfgHosts.