summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2020-09-28 12:37:49 +0200
committerTomek Mrugalski <tomek@isc.org>2020-09-28 14:03:39 +0200
commit0ac0908d2aa0c980991f8cb1a166c9831b876724 (patch)
tree8b5bc0d7fff21a9f7f9560655769ea45ffbbe4fb
parent[#1373] Updated csv-format stuff (diff)
downloadkea-0ac0908d2aa0c980991f8cb1a166c9831b876724.tar.xz
kea-0ac0908d2aa0c980991f8cb1a166c9831b876724.zip
[#1373] Addressed comment
-rw-r--r--src/hooks/dhcp/flex_option/flex_option.cc2
-rw-r--r--src/hooks/dhcp/flex_option/flex_option.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/hooks/dhcp/flex_option/flex_option.cc b/src/hooks/dhcp/flex_option/flex_option.cc
index d7e4a8757a..a4835b4482 100644
--- a/src/hooks/dhcp/flex_option/flex_option.cc
+++ b/src/hooks/dhcp/flex_option/flex_option.cc
@@ -76,7 +76,7 @@ namespace flex_option {
FlexOptionImpl::OptionConfig::OptionConfig(uint16_t code,
OptionDefinitionPtr def)
- : code_(code), action_(NONE), def_(def) {
+ : code_(code), def_(def), action_(NONE) {
}
FlexOptionImpl::OptionConfig::~OptionConfig() {
diff --git a/src/hooks/dhcp/flex_option/flex_option.h b/src/hooks/dhcp/flex_option/flex_option.h
index a25e472c0f..f92e7ae7eb 100644
--- a/src/hooks/dhcp/flex_option/flex_option.h
+++ b/src/hooks/dhcp/flex_option/flex_option.h
@@ -121,6 +121,10 @@ public:
/// @brief The code.
uint16_t code_;
+ /// @brief The option definition.
+ /// @note This value is set only when csv-format is true.
+ isc::dhcp::OptionDefinitionPtr def_;
+
/// @brief The action.
Action action_;
@@ -129,10 +133,6 @@ public:
/// @brief The match expression.
isc::dhcp::ExpressionPtr expr_;
-
- /// @brief The option definition.
- /// @note This value is set only when csv-format is true.
- isc::dhcp::OptionDefinitionPtr def_;
};
/// @brief The type of shared pointers to option config.