|
@@ -42,6 +42,18 @@ using namespace isc::dhcp;
|
|
|
using namespace isc::log;
|
|
|
using namespace std;
|
|
|
|
|
|
+namespace isc {
|
|
|
+namespace dhcp {
|
|
|
+
|
|
|
+/// @brief file name of a server-id file
|
|
|
+///
|
|
|
+/// Server must store its server identifier in persistent storage that must not
|
|
|
+/// change between restarts. This is name of the file that is created in dataDir
|
|
|
+/// (see isc::dhcp::CfgMgr::getDataDir()). It is a text file that uses
|
|
|
+/// regular IPv4 address, e.g. 192.0.2.1. Server will create it during
|
|
|
+/// first run and then use it afterwards.
|
|
|
+static const char* SERVER_ID_FILE = "b10-dhcp4-serverid";
|
|
|
+
|
|
|
// These are hardcoded parameters. Currently this is a skeleton server that only
|
|
|
// grants those options and a single, fixed, hardcoded lease.
|
|
|
|
|
@@ -717,3 +729,6 @@ Dhcpv4Srv::sanityCheck(const Pkt4Ptr& pkt, RequirementLevel serverid) {
|
|
|
;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+} // namespace dhcp
|
|
|
+} // namespace isc
|