Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
6c956eba
Commit
6c956eba
authored
Oct 30, 2014
by
Marcin Siodelski
Browse files
[3625] Hooked up the CfgSubnets6 class to SrvConfig.
parent
452efc32
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcpsrv/srv_config.cc
View file @
6c956eba
...
...
@@ -26,12 +26,14 @@ namespace dhcp {
SrvConfig
::
SrvConfig
()
:
sequence_
(
0
),
cfg_option_def_
(
new
CfgOptionDef
()),
cfg_option_
(
new
CfgOption
()),
cfg_subnets4_
(
new
CfgSubnets4
())
{
cfg_option_
(
new
CfgOption
()),
cfg_subnets4_
(
new
CfgSubnets4
()),
cfg_subnets6_
(
new
CfgSubnets6
())
{
}
SrvConfig
::
SrvConfig
(
const
uint32_t
sequence
)
:
sequence_
(
sequence
),
cfg_option_def_
(
new
CfgOptionDef
()),
cfg_option_
(
new
CfgOption
()),
cfg_subnets4_
(
new
CfgSubnets4
())
{
cfg_option_
(
new
CfgOption
()),
cfg_subnets4_
(
new
CfgSubnets4
()),
cfg_subnets6_
(
new
CfgSubnets6
())
{
}
std
::
string
...
...
src/lib/dhcpsrv/srv_config.h
View file @
6c956eba
...
...
@@ -19,6 +19,7 @@
#include <dhcpsrv/cfg_option.h>
#include <dhcpsrv/cfg_option_def.h>
#include <dhcpsrv/cfg_subnets4.h>
#include <dhcpsrv/cfg_subnets6.h>
#include <dhcpsrv/logging_info.h>
#include <boost/shared_ptr.hpp>
#include <vector>
...
...
@@ -201,6 +202,22 @@ public:
return
(
cfg_subnets4_
);
}
/// @brief Returns pointer to non-const object holding subnets configuration
/// for DHCPv6.
///
/// @return Pointer to the object holding subnets configuration for DHCPv4.
CfgSubnets6Ptr
getCfgSubnets6
()
{
return
(
cfg_subnets6_
);
}
/// @brief Returns pointer to const object holding subnets configuration for
/// DHCPv4.
///
/// @return Pointer to the object holding subnets configuration for DHCPv6.
ConstCfgSubnets6Ptr
getCfgSubnets6
()
const
{
return
(
cfg_subnets6_
);
}
//@}
/// @brief Copies the currnet configuration to a new configuration.
...
...
@@ -305,6 +322,9 @@ private:
/// @brief Pointer to subnets configuration for IPv4.
CfgSubnets4Ptr
cfg_subnets4_
;
/// @brief Pointer to subnets configuration for IPv4.
CfgSubnets6Ptr
cfg_subnets6_
;
};
/// @name Pointers to the @c SrvConfig object.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment