]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #2361 in SNORT/snort3 from ~DAVMCPHE/snort3:host_attribute_peg_cou...
authorDavis McPherson (davmcphe) <davmcphe@cisco.com>
Wed, 29 Jul 2020 23:30:38 +0000 (23:30 +0000)
committerDavis McPherson (davmcphe) <davmcphe@cisco.com>
Wed, 29 Jul 2020 23:30:38 +0000 (23:30 +0000)
Squashed commit of the following:

commit 3c8c6ce0fbce7fc2810698bfae92053444f27c7f
Author: davis mcpherson <davmcphe@cisco.com>
Date:   Wed Jul 29 15:18:36 2020 -0400

    utils: keep deprecated attribute table pegcounts

src/utils/stats.cc
src/utils/stats.h

index 71fc19bb750af45aa827693810c6b4c2163d3800..18a52e21e1fce3c75a6637a663607c3cfa81bfa5 100644 (file)
@@ -220,6 +220,8 @@ const PegInfo proc_names[] =
     { CountType::SUM, "inspector_deletions", "number of times inspectors were deleted" },
     { CountType::SUM, "daq_reloads", "number of times daq configuration was reloaded" },
     { CountType::SUM, "attribute_table_reloads", "number of times hosts attribute table was reloaded" },
+    { CountType::SUM, "attribute_table_hosts", "number of hosts added to the attribute table" },
+    { CountType::SUM, "attribute_table_overflow", "number of host additions that failed due to attribute table full" },
     { CountType::END, nullptr, nullptr }
 };
 
index 2c492989d91622671f06e36445c50d741344154e..17160f89cdd13caedb53a368b1cd0a40ecb84f1f 100644 (file)
@@ -81,6 +81,8 @@ struct ProcessCount
     PegCount inspector_deletions;
     PegCount daq_reloads;
     PegCount attribute_table_reloads;
+    PegCount attribute_table_hosts;     // FIXIT-D - remove when host attribute pegs updated
+    PegCount attribute_table_overflow;  // FIXIT-D - remove when host attribute pegs updated
 };
 
 extern ProcessCount proc_stats;