diff options
author | Tomek Mrugalski <tomasz@isc.org> | 2015-09-22 21:19:22 +0200 |
---|---|---|
committer | Tomek Mrugalski <tomasz@isc.org> | 2015-09-22 21:19:22 +0200 |
commit | 11e2c4366d8624601172c01e95cff6a8b95833b3 (patch) | |
tree | 411d302b8662f239bf739da6657c096b519022a4 /src/lib/dhcpsrv/lease.cc | |
parent | [master] Removed extraneous variable. (diff) | |
parent | [3982] Minor fix after review: (diff) | |
download | kea-11e2c4366d8624601172c01e95cff6a8b95833b3.tar.xz kea-11e2c4366d8624601172c01e95cff6a8b95833b3.zip |
[master] Merge branch 'trac3982' (Decline v6)
Conflicts:
src/bin/dhcp6/dhcp6_srv.cc
src/lib/dhcpsrv/lease.cc
src/lib/dhcpsrv/tests/lease_unittest.cc
Diffstat (limited to 'src/lib/dhcpsrv/lease.cc')
-rw-r--r-- | src/lib/dhcpsrv/lease.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/lease.cc b/src/lib/dhcpsrv/lease.cc index 2320e51d74..0e77f21436 100644 --- a/src/lib/dhcpsrv/lease.cc +++ b/src/lib/dhcpsrv/lease.cc @@ -276,8 +276,18 @@ Lease6::getDuidVector() const { } void -Lease6::decline(uint32_t ) { - /// @todo: implement this +Lease6::decline(uint32_t probation_period) { + hwaddr_.reset(); + duid_ = DUID::generateEmpty(); + t1_ = 0; + t2_ = 0; + preferred_lft_ = 0; + valid_lft_ = probation_period; + cltt_ = time(NULL); + hostname_ = string(""); + fqdn_fwd_ = false; + fqdn_rev_ = false; + state_ = Lease::STATE_DECLINED; } std::string |