]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac3706] Lets use the hostname instead of removing it
authorShawn Routhier <sar@isc.org>
Sat, 28 Feb 2015 01:38:48 +0000 (17:38 -0800)
committerShawn Routhier <sar@isc.org>
Sat, 28 Feb 2015 01:38:48 +0000 (17:38 -0800)
tests/tools/dhcp-ubench/memfile_ubench.cc

index e5f2510662d78b65c8d635956bf835360bfd8dd1..ad57714d6a7212b44f508e8a0246aebcfd24be1c 100644 (file)
@@ -215,7 +215,7 @@ void memfile_uBenchmark::createLease4Test() {
     time_t cltt = time(NULL);       // Timestamp
     uint32_t pool_id = 0;           // Let's use pools 0-99
     bool fixed = false;
-                                    // Hostname will be generated dynamically
+    string hostname("foo");         // Hostname dynamically
     bool fqdn_fwd = true;           // Let's pretend to do AAAA update
     bool fqdn_rev = true;           // Let's pretend to do PTR update
 
@@ -247,7 +247,7 @@ void memfile_uBenchmark::createLease4Test() {
         lease->cltt = cltt;
         lease->pool_id = pool_id;
         lease->fixed = fixed;
-        lease->hostname = "foo";
+        lease->hostname = hostname;
         lease->fqdn_fwd = fqdn_fwd;
         lease->fqdn_rev = fqdn_rev;