From: Tomek Mrugalski Date: Tue, 11 Dec 2012 15:11:27 +0000 (+0100) Subject: [2325] Unknown renew is now logged in dhcp6 X-Git-Tag: bind10-1.0.0-beta-release~29^2~2^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a40fac0707fac08e85b06974092bbdc15720f37f;p=thirdparty%2Fkea.git [2325] Unknown renew is now logged in dhcp6 --- diff --git a/src/bin/dhcp6/dhcp6_messages.mes b/src/bin/dhcp6/dhcp6_messages.mes index f93258d6b7..d38acb96d7 100644 --- a/src/bin/dhcp6/dhcp6_messages.mes +++ b/src/bin/dhcp6/dhcp6_messages.mes @@ -201,3 +201,15 @@ which the DHCPv6 server has not been configured. The cause is most likely due to a misconfiguration of the server. The packet processing will continue, but the response will only contain generic configuration parameters and no addresses or prefixes. + +% DHCP6_UNKNOWN_RENEW received RENEW from client (duid=%1, iaid=%2) in subnet %3 +This warning message is printed when client attempts to renew a lease, but no +such lease is known by the server. This typically means that client attempts to +use its lease past its lifetime, e.g. due to time adjustment or poor support +for sleep/recovery. Properly implemented client will recover from such case +(it should restart lease allocation process after receiving a negative reply +from the server). Alternatively, it may mean that the server lost its +database recently and does not recognize its well behaving clients. This +is likely the case if you see many such messages. Clients will recover from +this, but they will likely get another IP addresses and experience brief +service interruption. diff --git a/src/bin/dhcp6/dhcp6_srv.cc b/src/bin/dhcp6/dhcp6_srv.cc index dd6bf2777c..da8aa52e84 100644 --- a/src/bin/dhcp6/dhcp6_srv.cc +++ b/src/bin/dhcp6/dhcp6_srv.cc @@ -583,6 +583,12 @@ OptionPtr Dhcpv6Srv::renewIA_NA(const Subnet6Ptr& subnet, const DuidPtr& duid, // Insert status code NoAddrsAvail. ia_rsp->addOption(createStatusCode(STATUS_NoAddrsAvail, "Sorry, no known leases for this duid/iaid.")); + + LOG_DEBUG(dhcp6_logger, DBG_DHCP6_DETAIL, DHCP6_UNKNOWN_RENEW) + .arg(duid->toText()) + .arg(ia->getIAID()) + .arg(subnet->toText()); + return (ia_rsp); }