|
@@ -169,12 +169,19 @@ public:
|
|
/// If there are any classes specified in a subnet, that subnet
|
|
/// If there are any classes specified in a subnet, that subnet
|
|
/// will be selected only if the client belongs to appropriate class.
|
|
/// will be selected only if the client belongs to appropriate class.
|
|
///
|
|
///
|
|
|
|
+ /// If relay is true then relay info overrides (i.e. value the sysadmin
|
|
|
|
+ /// can configure in Dhcp4/subnet6[X]/relay/ip-address) can be used.
|
|
|
|
+ /// That is true only for relays. Those overrides must not be used
|
|
|
|
+ /// for client address or for client hints. They are for giaddr only.
|
|
|
|
+ ///
|
|
/// @param hint an address that belongs to a searched subnet
|
|
/// @param hint an address that belongs to a searched subnet
|
|
/// @param classes classes the client belongs to
|
|
/// @param classes classes the client belongs to
|
|
|
|
+ /// @param relay true if address specified in hint is a relay
|
|
///
|
|
///
|
|
/// @return a subnet object (or NULL if no suitable match was fount)
|
|
/// @return a subnet object (or NULL if no suitable match was fount)
|
|
Subnet6Ptr getSubnet6(const isc::asiolink::IOAddress& hint,
|
|
Subnet6Ptr getSubnet6(const isc::asiolink::IOAddress& hint,
|
|
- const isc::dhcp::ClientClasses& classes);
|
|
|
|
|
|
+ const isc::dhcp::ClientClasses& classes,
|
|
|
|
+ bool relay = false);
|
|
|
|
|
|
/// @brief get IPv6 subnet by interface name
|
|
/// @brief get IPv6 subnet by interface name
|
|
///
|
|
///
|
|
@@ -262,12 +269,19 @@ public:
|
|
/// If there are any classes specified in a subnet, that subnet
|
|
/// If there are any classes specified in a subnet, that subnet
|
|
/// will be selected only if the client belongs to appropriate class.
|
|
/// will be selected only if the client belongs to appropriate class.
|
|
///
|
|
///
|
|
|
|
+ /// If relay is true then relay info overrides (i.e. value the sysadmin
|
|
|
|
+ /// can configure in Dhcp4/subnet4[X]/relay/ip-address) can be used.
|
|
|
|
+ /// That is true only for relays. Those overrides must not be used
|
|
|
|
+ /// for client address or for client hints. They are for giaddr only.
|
|
|
|
+ ///
|
|
/// @param hint an address that belongs to a searched subnet
|
|
/// @param hint an address that belongs to a searched subnet
|
|
/// @param classes classes the client belongs to
|
|
/// @param classes classes the client belongs to
|
|
|
|
+ /// @param relay true if address specified in hint is a relay
|
|
///
|
|
///
|
|
/// @return a subnet object
|
|
/// @return a subnet object
|
|
Subnet4Ptr getSubnet4(const isc::asiolink::IOAddress& hint,
|
|
Subnet4Ptr getSubnet4(const isc::asiolink::IOAddress& hint,
|
|
- const isc::dhcp::ClientClasses& classes) const;
|
|
|
|
|
|
+ const isc::dhcp::ClientClasses& classes,
|
|
|
|
+ bool relay = false) const;
|
|
|
|
|
|
/// @brief Returns a subnet for the specified local interface.
|
|
/// @brief Returns a subnet for the specified local interface.
|
|
///
|
|
///
|