has been received. A single server instance will use multiple server
identifiers if it is receiving queries on multiple interfaces.
-It is possible to override the default server identifier values by
-specifying the "dhcp-server-identifier" option. This option is only
-supported at the global, shared network, and subnet levels; it must not
-be specified on the client class or host reservation levels.
+It is possible to override the default server identifier values by specifying
+the "dhcp-server-identifier" option. This option configuration is only supported
+at the subnet, shared network, client class and global levels; it must not be
+specified on the host reservation levels.
The following example demonstrates how to override the server identifier
for a subnet:
// anywhere. This should be good enough to eliminate exchanges
// with other servers in the same network.
- /// @todo Currently we only check subnet identifiers configured on the
- /// subnet level, shared network level and global level. This should
- /// be sufficient for most of cases. At this point, trying to support
- /// server identifiers on the class level seems to be an overkill and
- /// is probably not needed. Same with host reservations. In fact,
- /// at this point we don't know the reservations for the client
- /// communicating with the server. We may revise some of these choices
- /// in the future.
+ /// @todo Currently we only check server identifiers configured on the
+ /// subnet level, shared network level, client class level and global level.
+ /// This should be sufficient for most of cases. At this point, trying to
+ /// support server identifiers on the host reservations level seems to be an
+ /// overkill and is probably not needed. In fact, at this point we don't
+ /// know the reservations for the client communicating with the server.
+ /// We may revise some of these choices in the future.
SrvConfigPtr cfg = CfgMgr::instance().getCurrentCfg();
void
Dhcpv4SrvTest::checkAddressParams(const Pkt4Ptr& rsp,
- const Subnet4Ptr subnet,
- bool t1_present,
- bool t2_present,
- uint32_t expected_valid) {
+ const Subnet4Ptr subnet,
+ bool t1_present,
+ bool t2_present,
+ uint32_t expected_valid) {
// Technically inPool implies inRange, but let's be on the safe
// side and check both.
void
Dhcpv4SrvTest::checkResponse(const Pkt4Ptr& rsp, int expected_message_type,
- uint32_t expected_transid) {
+ uint32_t expected_transid) {
ASSERT_TRUE(rsp);
EXPECT_EQ(expected_message_type,
static_cast<int>(rsp->getType()));
}
Lease4Ptr
-Dhcpv4SrvTest::checkLease(const Pkt4Ptr& rsp,
- const OptionPtr& client_id,
- const HWAddrPtr&,
- const IOAddress& expected_addr) {
+Dhcpv4SrvTest::checkLease(const Pkt4Ptr& rsp, const OptionPtr& client_id,
+ const HWAddrPtr&, const IOAddress& expected_addr) {
ClientIdPtr id;
if (client_id) {
///
/// @param expected_server_id expected server identifier
/// @param query the query used to get associated client classes
- /// @param query the requested the requested address
+ /// @param requested the requested address
/// @param server_id server identifier
void buildCfgOptionTest(isc::asiolink::IOAddress expected_server_id,
Pkt4Ptr& query,