diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-08-20 18:14:06 +0200 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-08-20 18:14:06 +0200 |
commit | 86515a1ff7aa8eb1c1f50dfc561fd9df279742b3 (patch) | |
tree | d7b1e461afa5632d491e1551b6d39a8357fe0f76 /src/lib/dhcpsrv/csv_lease_file4.h | |
parent | [3965] Added capability to remove expired-reclaimed leases. (diff) | |
download | kea-86515a1ff7aa8eb1c1f50dfc561fd9df279742b3.tar.xz kea-86515a1ff7aa8eb1c1f50dfc561fd9df279742b3.zip |
[3965] Write and read state from the lease files.
Diffstat (limited to 'src/lib/dhcpsrv/csv_lease_file4.h')
-rw-r--r-- | src/lib/dhcpsrv/csv_lease_file4.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/src/lib/dhcpsrv/csv_lease_file4.h b/src/lib/dhcpsrv/csv_lease_file4.h index 736316209d..7f302aba8b 100644 --- a/src/lib/dhcpsrv/csv_lease_file4.h +++ b/src/lib/dhcpsrv/csv_lease_file4.h @@ -102,6 +102,7 @@ private: /// - fqdn_fwd /// - fqdn_rev /// - hostname + /// - state void initColumns(); /// @@ -111,48 +112,53 @@ private: /// /// @brief Reads lease address from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. asiolink::IOAddress readAddress(const util::CSVRow& row); /// @brief Reads HW address from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. HWAddr readHWAddr(const util::CSVRow& row); /// @brief Reads client identifier from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. ClientIdPtr readClientId(const util::CSVRow& row); /// @brief Reads valid lifetime from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. uint32_t readValid(const util::CSVRow& row); /// @brief Reads cltt value from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. time_t readCltt(const util::CSVRow& row); /// @brief Reads subnet id from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. SubnetID readSubnetID(const util::CSVRow& row); /// @brief Reads the FQDN forward flag from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. bool readFqdnFwd(const util::CSVRow& row); /// @brief Reads the FQDN reverse flag from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. bool readFqdnRev(const util::CSVRow& row); /// @brief Reads hostname from the CSV file row. /// - /// @param row CSV file holding lease values. + /// @param row CSV file row holding lease information. std::string readHostname(const util::CSVRow& row); + + /// @brief Reads lease state from the CSV file row. + /// + /// @param row CSV file row holding lease information. + uint32_t readState(const util::CSVRow& row); //@} }; |