]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#477] added counter to another place
authorWlodek Wencel <wlodek@isc.org>
Wed, 20 May 2020 14:40:58 +0000 (16:40 +0200)
committerWlodzimierz Wencel <wlodek@isc.org>
Fri, 22 May 2020 15:37:17 +0000 (15:37 +0000)
src/bin/perfdhcp/pkt_transform.cc

index dd1a63443678adb244a153f562c1e0e0fd7c548a..9e11084fa16c797b7eaae43b3a42a3cc4bd36050 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <perfdhcp/pkt_transform.h>
 #include <perfdhcp/localized_option.h>
+#include <perfdhcp/stats_mgr.h>
 
 #include <exceptions/exceptions.h>
 #include <dhcp/option.h>
@@ -99,6 +100,7 @@ PktTransform::unpack(const Option::Universe universe,
     try {
         PktTransform::unpackOptions(in_buffer, options);
     } catch (const isc::BadValue& e) {
+        ExchangeStats::malformed_pkts_++;
         cout << "Packet parsing failed: " << e.what() << endl;
         return (false);
     }