From: Tomek Mrugalski Date: Tue, 9 Jun 2015 14:50:56 +0000 (+0200) Subject: [3794] Comments updated. X-Git-Tag: throw_with_base~3^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=096b891dc07ad8fdca2bcccf560c6f312e71fb2d;p=thirdparty%2Fkea.git [3794] Comments updated. --- diff --git a/src/bin/dhcp4/dhcp4_srv.cc b/src/bin/dhcp4/dhcp4_srv.cc index 1acb14f3ce..bf1db5dc6a 100644 --- a/src/bin/dhcp4/dhcp4_srv.cc +++ b/src/bin/dhcp4/dhcp4_srv.cc @@ -2262,16 +2262,18 @@ void Dhcpv4Srv::processStatsReceived(const Pkt4Ptr& query) { stat_name = "pkt4-discover-received"; break; case DHCPOFFER: - // should not happen, but we'll keep a counter for it anyway + // Should not happen, but let's keep a counter for it stat_name = "pkt4-offer-received"; break; case DHCPREQUEST: stat_name = "pkt4-request-received"; break; case DHCPACK: + // Should not happen, but let's keep a counter for it stat_name = "pkt4-ack-received"; break; case DHCPNAK: + // Should not happen, but let's keep a counter for it stat_name = "pkt4-nak-received"; break; case DHCPRELEASE: @@ -2306,7 +2308,6 @@ void Dhcpv4Srv::processStatsSent(const Pkt4Ptr& response) { string stat_name; switch (response->getType()) { case DHCPOFFER: - // should not happen, but we'll keep a counter for it anyway stat_name = "pkt4-offer-sent"; break; case DHCPACK: