]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #792 in SNORT/snort3 from peg_norms to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Fri, 27 Jan 2017 21:17:59 +0000 (16:17 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Fri, 27 Jan 2017 21:17:59 +0000 (16:17 -0500)
Squashed commit of the following:

commit 879f054992532a010c067f45c140c7b7a145681d
Author: Russ Combs <rucombs@cisco.com>
Date:   Wed Jan 25 16:02:36 2017 -0500

    normalize peg names to lower snake_case

45 files changed:
extra/src/inspectors/http_server/http_inspect.cc
src/codecs/ip/cd_icmp4.cc
src/codecs/ip/cd_icmp6.cc
src/codecs/ip/cd_ipv4.cc
src/codecs/ip/cd_tcp.cc
src/codecs/ip/cd_udp.cc
src/codecs/link/cd_mpls.cc
src/file_api/file_log.cc
src/file_api/file_module.cc
src/flow/ha_module.cc
src/flow/ha_module.h
src/hash/lru_cache_shared.cc
src/hash/test/lru_cache_shared_test.cc
src/host_tracker/host_tracker_module.cc
src/host_tracker/test/host_cache_module_test.cc
src/host_tracker/test/host_tracker_module_test.cc
src/ips_options/ips_sd_pattern.cc
src/latency/latency_module.cc
src/main/modules.cc
src/network_inspectors/appid/appid_module.cc
src/network_inspectors/normalize/norm.cc
src/network_inspectors/normalize/norm_module.cc
src/network_inspectors/perf_monitor/base_tracker.cc
src/network_inspectors/reputation/reputation_inspect.cc
src/service_inspectors/dce_rpc/dce_smb_module.cc
src/service_inspectors/dce_rpc/dce_tcp_module.cc
src/service_inspectors/dce_rpc/dce_udp_module.cc
src/service_inspectors/dnp3/dnp3_module.cc
src/service_inspectors/gtp/gtp_module.cc
src/service_inspectors/http_inspect/http_tables.cc
src/service_inspectors/imap/imap.cc
src/service_inspectors/pop/pop.cc
src/service_inspectors/sip/sip_module.cc
src/service_inspectors/smtp/smtp.cc
src/service_inspectors/ssl/ssl_inspector.cc
src/service_inspectors/wizard/wizard.cc
src/side_channel/side_channel_module.cc
src/side_channel/side_channel_module.h
src/stream/base/stream_base.cc
src/stream/icmp/icmp_session.cc
src/stream/ip/ip_session.cc
src/stream/tcp/tcp_module.cc
src/stream/tcp/tcp_normalizer.cc
src/stream/udp/udp_session.cc
src/utils/stats.cc

index 6f5fa4ade3469639107ef6c223d88503a103045c..40ccfe3475123db77faa5e92e550f5247d29b9ab 100644 (file)
@@ -61,22 +61,22 @@ const PegInfo peg_names[] =
     { "gets", "GET requests" },
     { "posts", "POST requests" },
 
-    { "request headers", "total requests" },
-    { "response headers", "total responses" },
-    { "request cookies", "requests with Cookie" },
-    { "response cookies", "responses with Set-Cookie" },
-    { "post params", "POST parameters extracted" },
+    { "request_headers", "total requests" },
+    { "response_headers", "total responses" },
+    { "request_cookies", "requests with Cookie" },
+    { "response_cookies", "responses with Set-Cookie" },
+    { "post_params", "POST parameters extracted" },
 
     { "unicode", "unicode normalizations" },
-    { "double unicode", "double unicode normalizations" },
-    { "non-ascii", "non-ascii normalizations" },
-    { "paths with ../", "directory traversal normalizations" },
-    { "paths with //", "double slash normalizations" },
-    { "paths with ./", "relative directory normalizations" },
-
-    { "gzip packets", "packets with gzip compression" },
-    { "compressed bytes", "total comparessed bytes processed" },
-    { "decompressed bytes", "total bytes decompressed" },
+    { "double_unicode", "double unicode normalizations" },
+    { "non_ascii", "non-ascii normalizations" },
+    { "paths_with_traversal", "directory traversal (../) normalizations" },
+    { "paths_with_double_slash", "double slash (//) normalizations" },
+    { "paths_with_relative", "relative directory (./) normalizations" },
+
+    { "gzip_packets", "packets with gzip compression" },
+    { "compressed_bytes", "total comparessed bytes processed" },
+    { "decompressed_bytes", "total bytes decompressed" },
 
     { nullptr, nullptr }
 };
index 8c12b9f81291ad824b3af09a4240788a415b7952..ac80fffeaaa9aa49866db6560a432ea5d0eb5a58 100644 (file)
@@ -37,7 +37,7 @@ namespace
 {
 const PegInfo pegs[]
 {
-    { "bad checksum", "non-zero icmp checksums" },
+    { "bad_checksum", "non-zero icmp checksums" },
     { nullptr, nullptr }
 };
 
index b48425756f2d03eebcad2eda33e50b2b7190970c..910df155c47dc54b383ae43fc82f4fff53c633e0 100644 (file)
@@ -39,8 +39,8 @@ namespace
 {
 const PegInfo pegs[]
 {
-    { "bad checksum (ip4)", "nonzero ipcm4 checksums" },
-    { "bad checksum (ip6)", "nonzero ipcm6 checksums" },
+    { "bad_icmp4_checksum", "nonzero ipcm4 checksums" },
+    { "bad_icmp6_checksum", "nonzero ipcm6 checksums" },
     { nullptr, nullptr }
 };
 
index 941d88c6662a33a0c82f2094528ce530fd8bbd85..71cefaa3fca0d0f836b67e62de329d79d82e80b7 100644 (file)
@@ -44,7 +44,7 @@ namespace
 {
 const PegInfo pegs[]
 {
-    { "bad checksum", "nonzero ip checksums" },
+    { "bad_checksum", "nonzero ip checksums" },
     { nullptr, nullptr }
 };
 
index 5a646074f4e5e394c4d2d86b1f3c87174b5003d2..fb8e2540c8b258854a303a2c7b9e1daa2157225d 100644 (file)
@@ -44,8 +44,8 @@ namespace
 {
 const PegInfo pegs[]
 {
-    { "bad checksum (ip4)", "nonzero tcp over ip checksums" },
-    { "bad checksum (ip6)", "nonzero tcp over ipv6 checksums" },
+    { "bad_tcp4_checksum", "nonzero tcp over ip checksums" },
+    { "bad_tcp6_checksum", "nonzero tcp over ipv6 checksums" },
     { nullptr, nullptr }
 };
 
index ca604c585b30c35c534d2961e596656ef6ff1e58..5877dd112fba48461b6e10963f827da6bfd0b0ee 100644 (file)
@@ -39,8 +39,8 @@ namespace
 {
 const PegInfo pegs[]
 {
-    { "bad checksum (ip4)", "nonzero udp over ipv4 checksums" },
-    { "bad checksum (ip6)", "nonzero udp over ipv6 checksums" },
+    { "bad_udp4_checksum", "nonzero udp over ipv4 checksums" },
+    { "bad_udp6_checksum", "nonzero udp over ipv6 checksums" },
     { nullptr, nullptr }
 };
 
index 4a60bfed53ef028edba3e459b249aa11ccfadc96..fad4f61064faa7a248dd87102854112b3ebf625f 100644 (file)
@@ -64,8 +64,8 @@ static const RuleMap mpls_rules[] =
 
 static const PegInfo mpls_pegs[] =
 {
-    { "total packets", "total mpls labeled packets processed" },
-    { "total bytes", "total mpls labeled bytes processed" },
+    { "total_packets", "total mpls labeled packets processed" },
+    { "total_bytes", "total mpls labeled bytes processed" },
     { nullptr, nullptr }
 };
 
index 49c139ecbde312d64e6c0a6ce8adc0adcd3f4106..e9796239c006905fe5a00ab3dff09e660fb9cb3e 100644 (file)
@@ -51,7 +51,7 @@ static THREAD_LOCAL FileLogStats fl_stats;
 
 static const PegInfo fl_pegs[] =
 {
-    { "total events", "total file events" },
+    { "total_events", "total file events" },
 
     { nullptr, nullptr }
 };
index 10e6218347cf04adad798a26eaf7e6187916c839..93034732e233faaf28b435e0cfbc2a20ffb55a6b 100644 (file)
@@ -176,9 +176,9 @@ static const Parameter file_id_params[] =
 
 static const PegInfo file_pegs[] =
 {
-    { "total files", "number of files processed" },
-    { "total file data", "number of file data bytes processed" },
-    { "cache failures", "number of file cache add failures" },
+    { "total_files", "number of files processed" },
+    { "total_file_data", "number of file data bytes processed" },
+    { "cache_failures", "number of file cache add failures" },
     { nullptr, nullptr }
 };
 
index 2c7ddb1967f4f040e482577e729146df8c676c38..00e4b9dac682e52f030059aeda88baac6203664b 100644 (file)
 
 #include "ha.h"
 
-static const PegInfo ha_pegs[] =
-{
-    { nullptr, nullptr }
-};
-
 extern THREAD_LOCAL SimpleStats ha_stats;
 extern THREAD_LOCAL ProfileStats ha_perf_stats;
 
@@ -156,9 +151,6 @@ bool HighAvailabilityModule::end(const char* fqn, int idx, SnortConfig*)
     return true;
 }
 
-const PegInfo* HighAvailabilityModule::get_pegs() const
-{ return ha_pegs; }
-
 PegCount* HighAvailabilityModule::get_counts() const
 { return (PegCount*)&ha_stats; }
 
index 237a04438442e9e2f5411d3eef5842f76b8a9d8d..a3aace62117d58adf84ee0b7bdac73e00d641281 100644 (file)
@@ -51,9 +51,7 @@ public:
     bool begin(const char*, int, SnortConfig*) override;
     bool end(const char*, int, SnortConfig*) override;
 
-    const PegInfo* get_pegs() const override;
     PegCount* get_counts() const override;
-
     ProfileStats* get_profile() const override;
 
 private:
index fb22fb025edadf71b2881165e1a88995c3d9a413..db6bb36e9ff70f857e9867a890b7e195367e8c90 100644 (file)
 
 const PegInfo lru_cache_shared_peg_names[] =
 {
-    { "lru cache adds", "lru cache added new entry" },
-    { "lru cache replaces", "lru cache replaced existing entry" },
-    { "lru cache prunes", "lru cache pruned entry to make space for new entry" },
-    { "lru cache find hits", "lru cache found entry in cache" },
-    { "lru cache find misses", "lru cache did not find entry in cache" },
-    { "lru cache removes", "lru cache found entry and removed it" },
-    { "lru cache clears", "lru cache clear API calls" },
+    { "lru_cache_adds", "lru cache added new entry" },
+    { "lru_cache_replaces", "lru cache replaced existing entry" },
+    { "lru_cache_prunes", "lru cache pruned entry to make space for new entry" },
+    { "lru_cache_find_hits", "lru cache found entry in cache" },
+    { "lru_cache_find_misses", "lru cache did not find entry in cache" },
+    { "lru_cache_removes", "lru cache found entry and removed it" },
+    { "lru_cache_clears", "lru cache clear API calls" },
     { nullptr, nullptr },
 };
 
index 3c73e7047b84811c140ce5a4d53b1e6a30d77f49..f3ffcdb886ca6767648349f1aab6574457a8d207 100644 (file)
@@ -202,13 +202,13 @@ TEST(lru_cache_shared, stats_test)
 
     // Check statistics names.
     const PegInfo* pegs = lru_cache.get_pegs();
-    CHECK(!strcmp(pegs[0].name, "lru cache adds"));
-    CHECK(!strcmp(pegs[1].name, "lru cache replaces"));
-    CHECK(!strcmp(pegs[2].name, "lru cache prunes"));
-    CHECK(!strcmp(pegs[3].name, "lru cache find hits"));
-    CHECK(!strcmp(pegs[4].name, "lru cache find misses"));
-    CHECK(!strcmp(pegs[5].name, "lru cache removes"));
-    CHECK(!strcmp(pegs[6].name, "lru cache clears"));
+    CHECK(!strcmp(pegs[0].name, "lru_cache_adds"));
+    CHECK(!strcmp(pegs[1].name, "lru_cache_replaces"));
+    CHECK(!strcmp(pegs[2].name, "lru_cache_prunes"));
+    CHECK(!strcmp(pegs[3].name, "lru_cache_find_hits"));
+    CHECK(!strcmp(pegs[4].name, "lru_cache_find_misses"));
+    CHECK(!strcmp(pegs[5].name, "lru_cache_removes"));
+    CHECK(!strcmp(pegs[6].name, "lru_cache_clears"));
 }
 
 int main(int argc, char** argv)
index 95dc6d7752e438c70102ad7dedcb21f9671de57f..1696c370eb42858cb04f1f459a4825da478a9da4 100644 (file)
@@ -32,9 +32,9 @@
 
 const PegInfo host_tracker_pegs[] =
 {
-    { "service adds", "host service adds" },
-    { "service finds", "host service finds" },
-    { "service removes", "host service removes" },
+    { "service_adds", "host service adds" },
+    { "service_finds", "host service finds" },
+    { "service_removes", "host service removes" },
     { nullptr, nullptr },
 };
 
index 9f3e71f7b0efd0c5692146169d165dbb08fab29a..d09f241ee2aa45979d1a153118653546a1641d71 100644 (file)
@@ -68,13 +68,13 @@ TEST(host_cache_module, host_cache_module_test_values)
     const PegInfo* ht_pegs = module.get_pegs();
     const PegCount* ht_stats = module.get_counts();
 
-    CHECK(!strcmp(ht_pegs[0].name, "lru cache adds"));
-    CHECK(!strcmp(ht_pegs[1].name, "lru cache replaces"));
-    CHECK(!strcmp(ht_pegs[2].name, "lru cache prunes"));
-    CHECK(!strcmp(ht_pegs[3].name, "lru cache find hits"));
-    CHECK(!strcmp(ht_pegs[4].name, "lru cache find misses"));
-    CHECK(!strcmp(ht_pegs[5].name, "lru cache removes"));
-    CHECK(!strcmp(ht_pegs[6].name, "lru cache clears"));
+    CHECK(!strcmp(ht_pegs[0].name, "lru_cache_adds"));
+    CHECK(!strcmp(ht_pegs[1].name, "lru_cache_replaces"));
+    CHECK(!strcmp(ht_pegs[2].name, "lru_cache_prunes"));
+    CHECK(!strcmp(ht_pegs[3].name, "lru_cache_find_hits"));
+    CHECK(!strcmp(ht_pegs[4].name, "lru_cache_find_misses"));
+    CHECK(!strcmp(ht_pegs[5].name, "lru_cache_removes"));
+    CHECK(!strcmp(ht_pegs[6].name, "lru_cache_clears"));
     CHECK(!ht_pegs[7].name);
 
     CHECK(ht_stats[0] == 0);
index 52f4074d960515937c2f7f2c17cd798fed75a861..9797fabc477c28de81c8e382929a960878c9f97c 100644 (file)
@@ -77,9 +77,9 @@ TEST_GROUP(host_tracker_module)
         const PegInfo* ht_pegs = module.get_pegs();
         const PegCount* ht_stats = module.get_counts();
 
-        CHECK(!strcmp(ht_pegs[0].name, "service adds"));
-        CHECK(!strcmp(ht_pegs[1].name, "service finds"));
-        CHECK(!strcmp(ht_pegs[2].name, "service removes"));
+        CHECK(!strcmp(ht_pegs[0].name, "service_adds"));
+        CHECK(!strcmp(ht_pegs[1].name, "service_finds"));
+        CHECK(!strcmp(ht_pegs[2].name, "service_removes"));
         CHECK(!ht_pegs[3].name);
 
         CHECK(ht_stats[0] == 0);
index e7d196517592644e87f407652a575ac595372ce9..07e7e3c61e147a739da4b6078dbf6aa7af9574bd 100644 (file)
@@ -66,8 +66,8 @@ struct SdStats
 
 const PegInfo sd_pegs[] =
 {
-    { "below threshold", "sd_pattern matched but missed threshold" },
-    { "pattern not found", "sd_pattern did not not match" },
+    { "below_threshold", "sd_pattern matched but missed threshold" },
+    { "pattern_not_found", "sd_pattern did not not match" },
     { "terminated", "hyperscan terminated" },
     { nullptr, nullptr }
 };
index cdf30661ed9a153e9c2e10109a2a396373835899..79c76a95cd8b5849eca71eef66bc9b196ec40c05 100644 (file)
@@ -100,13 +100,13 @@ THREAD_LOCAL LatencyStats latency_stats;
 
 static const PegInfo latency_pegs[] =
 {
-    { "total packets", "total packets monitored" },
-    { "total usecs", "total usecs elapsed" },
-    { "max usecs", "maximum usecs elapsed" },
-    { "packet timeouts", "packets that timed out" },
-    { "total rule evals", "total rule evals monitored" },
-    { "rule eval timeouts", "rule evals that timed out" },
-    { "rule tree enables", "rule tree re-enables" },
+    { "total_packets", "total packets monitored" },
+    { "total_usecs", "total usecs elapsed" },
+    { "max_usecs", "maximum usecs elapsed" },
+    { "packet_timeouts", "packets that timed out" },
+    { "total_rule_evals", "total rule evals monitored" },
+    { "rule_eval_timeouts", "rule evals that timed out" },
+    { "rule_tree_enables", "rule tree re-enables" },
     { nullptr, nullptr }
 };
 
index 98e4fc8a977e988f6b5b58a83f20030d004701d7..0bf7d818876197478071b1ab04f2ca82bf81f436 100644 (file)
@@ -243,12 +243,12 @@ THREAD_LOCAL PatMatQStat pmqs;
 
 const PegInfo mpse_pegs[] =
 {
-    { "max queued", "maximum fast pattern matches queued for further evaluation" },
-    { "total flushed", "fast pattern matches discarded due to overflow" },
-    { "total inserts", "total fast pattern hits" },
-    { "total unique", "total unique fast pattern hits" },
-    { "non-qualified events", "total non-qualified events" },
-    { "qualified events", "total qualified events" },
+    { "max_queued", "maximum fast pattern matches queued for further evaluation" },
+    { "total_flushed", "fast pattern matches discarded due to overflow" },
+    { "total_inserts", "total fast pattern hits" },
+    { "total_unique", "total unique fast pattern hits" },
+    { "non_qualified_events", "total non-qualified events" },
+    { "qualified_events", "total qualified events" },
     { nullptr, nullptr }
 };
 
index 2958dd778382dad6f672ebebbd098002ee6a8891..4269df4f27bff8b4f64c2fca27c22c6fc953e022 100644 (file)
@@ -42,80 +42,80 @@ THREAD_LOCAL ProfileStats appidPerfStats;
 const PegInfo appid_pegs[] =
 {
     { "packets", "count of packets received" },
-    { "processed packets", "count of packets processed" },
-    { "ignored packets", "count of packets ignored" },
-    { "aim clients", "count of aim clients discovered" },
-    { "battlefield flows", "count of battle field flows discovered" },
-    { "bgp flows", "count of bgp flows discovered" },
-    { "bit clients", "count of bittorrent clients discovered" },
-    { "bit flows", "count of bittorrent flows discovered" },
-    { "bittracker clients", "count of bittorrent tracker clients discovered" },
-    { "bootp flows", "count of bootp flows discovered" },
-    { "dcerpc tcp flows", "count of dce rpc flows over tcp discovered" },
-    { "dcerpc udp flows", "count of dce rpc flows over udp discovered" },
-    { "direct connect flows", "count of direct connect flows discovered" },
-    { "dns tcp flows", "count of dns flows over tcp discovered" },
-    { "dns udp flows", "count of dns flows over udp discovered" },
-    { "ftp flows", "count of ftp flows discovered" },
-    { "ftps flows", "count of ftps flows discovered" },
-    { "http flows", "count of http flows discovered" },
-    { "imap flows", "count of imap service flows discovered" },
-    { "imaps flows", "count of imap TLS service flows discovered" },
-    { "irc flows", "count of irc service flows discovered" },
-    { "kerberos clients", "count of kerberos clients discovered" },
-    { "kerberos flows", "count of kerberos service flows discovered" },
-    { "kerberos users", "count of kerberos users discovered" },
-    { "lpr flows", "count of lpr service flows discovered" },
-    { "mdns flows", "count of mdns service flows discovered" },
-    { "msn clients", "count of msn clients discovered" },
-    { "mysql flows", "count of mysql service flows discovered" },
-    { "netbios dgm flows", "count of netbios-dgm service flows discovered" },
-    { "netbios ns flows", "count of netbios-ns service flows discovered" },
-    { "netbios ssn flows", "count of netbios-ssn service flows discovered" },
-    { "nntp flows", "count of nntp flows discovered" },
-    { "ntp flows", "count of ntp flows discovered" },
-    { "pop flows", "count of pop service flows discovered" },
-    { "pop3 clients", "count of pop3 clients discovered" },
-    { "pop3s clients", "count of pop3s clients discovered" },
-    { "radius flows", "count of radius flows discovered" },
-    { "rexec flows", "count of rexec flows discovered" },
-    { "rfb flows", "count of rfb flows discovered" },
-    { "rlogin flows", "count of rlogin flows discovered" },
-    { "rpc flows", "count of rpc flows discovered" },
-    { "rshell flows", "count of rshell flows discovered" },
-    { "rsync flows", "count of rsync service flows discovered" },
-    { "rtmp flows", "count of rtmp flows discovered" },
-    { "rtp clients", "count of rtp clients discovered" },
-    { "sip clients", "count of SIP clients discovered" },
-    { "sip flows", "count of SIP flows discovered" },
-    { "smtp aol clients", "count of AOL smtp clients discovered" },
-    { "smtp applemail clients", "count of Apple Mail smtp clients discovered" },
-    { "smtp eudora clients", "count of Eudora smtp clients discovered" },
-    { "smtp eudora pro clients", "count of Eudora Pro smtp clients discovered" },
-    { "smtp evolution clients", "count of Evolution smtp clients discovered" },
-    { "smtp kmail clients", "count of KMail smtp clients discovered" },
-    { "smtp lotus notes clients", "count of Lotus Notes smtp clients discovered" },
-    { "smtp microsoft outlook clients", "count of Microsoft Outlook smtp clients discovered" },
-    { "smtp microsoft outlook express clients",
-      "count of Microsoft Outlook Express smtp clients discovered" },
-    { "smtp microsoft outlook imo clients",
+    { "processed_packets", "count of packets processed" },
+    { "ignored_packets", "count of packets ignored" },
+    { "aim_clients", "count of aim clients discovered" },
+    { "battlefield_flows", "count of battle field flows discovered" },
+    { "bgp_flows", "count of bgp flows discovered" },
+    { "bit_clients", "count of bittorrent clients discovered" },
+    { "bit_flows", "count of bittorrent flows discovered" },
+    { "bittracker_clients", "count of bittorrent tracker clients discovered" },
+    { "bootp_flows", "count of bootp flows discovered" },
+    { "dcerpc_tcp_flows", "count of dce rpc flows over tcp discovered" },
+    { "dcerpc_udp_flows", "count of dce rpc flows over udp discovered" },
+    { "direct_connect_flows", "count of direct connect flows discovered" },
+    { "dns_tcp_flows", "count of dns flows over tcp discovered" },
+    { "dns_udp_flows", "count of dns flows over udp discovered" },
+    { "ftp_flows", "count of ftp flows discovered" },
+    { "ftps_flows", "count of ftps flows discovered" },
+    { "http_flows", "count of http flows discovered" },
+    { "imap_flows", "count of imap service flows discovered" },
+    { "imaps_flows", "count of imap TLS service flows discovered" },
+    { "irc_flows", "count of irc service flows discovered" },
+    { "kerberos_clients", "count of kerberos clients discovered" },
+    { "kerberos_flows", "count of kerberos service flows discovered" },
+    { "kerberos_users", "count of kerberos users discovered" },
+    { "lpr_flows", "count of lpr service flows discovered" },
+    { "mdns_flows", "count of mdns service flows discovered" },
+    { "msn_clients", "count of msn clients discovered" },
+    { "mysql_flows", "count of mysql service flows discovered" },
+    { "netbios_dgm_flows", "count of netbios-dgm service flows discovered" },
+    { "netbios_ns_flows", "count of netbios-ns service flows discovered" },
+    { "netbios_ssn_flows", "count of netbios-ssn service flows discovered" },
+    { "nntp_flows", "count of nntp flows discovered" },
+    { "ntp_flows", "count of ntp flows discovered" },
+    { "pop_flows", "count of pop service flows discovered" },
+    { "pop3_clients", "count of pop3 clients discovered" },
+    { "pop3s_clients", "count of pop3s clients discovered" },
+    { "radius_flows", "count of radius flows discovered" },
+    { "rexec_flows", "count of rexec flows discovered" },
+    { "rfb_flows", "count of rfb flows discovered" },
+    { "rlogin_flows", "count of rlogin flows discovered" },
+    { "rpc_flows", "count of rpc flows discovered" },
+    { "rshell_flows", "count of rshell flows discovered" },
+    { "rsync_flows", "count of rsync service flows discovered" },
+    { "rtmp_flows", "count of rtmp flows discovered" },
+    { "rtp_clients", "count of rtp clients discovered" },
+    { "sip_clients", "count of SIP clients discovered" },
+    { "sip_flows", "count of SIP flows discovered" },
+    { "smtp_aol_clients", "count of AOL smtp clients discovered" },
+    { "smtp_applemail_clients", "count of Apple Mail smtp clients discovered" },
+    { "smtp_eudora_clients", "count of Eudora smtp clients discovered" },
+    { "smtp_eudora_pro_clients", "count of Eudora Pro smtp clients discovered" },
+    { "smtp_evolution_clients", "count of Evolution smtp clients discovered" },
+    { "smtp_kmail_clients", "count of KMail smtp clients discovered" },
+    { "smtp_lotus_notes_clients", "count of Lotus Notes smtp clients discovered" },
+    { "smtp_microsoft_outlook_clients", "count of Microsoft Outlook smtp clients discovered" },
+    { "smtp_microsoft_outlook_express_clients",
+      "count_of Microsoft Outlook Express smtp clients discovered" },
+    { "smtp_microsoft_outlook_imo_clients",
       "count of Microsoft Outlook IMO smtp clients discovered" },
-    { "smtp mutt clients", "count of Mutt smtp clients discovered" },
-    { "smtp thunderbird clients", "count of Thunderbird smtp clients discovered" },
-    { "smtp flows", "count of smtp flows discovered" },
-    { "smtps flows", "count of smtps flows discovered" },
-    { "snmp flows", "count of snmp flows discovered" },
-    { "ssh clients", "count of ssh clients discovered" },
-    { "ssh flows", "count of ssh flows discovered" },
-    { "ssl flows", "count of ssl flows discovered" },
-    { "telnet flows", "count of telnet flows discovered" },
-    { "tftp flows", "count of tftp flows discovered" },
-    { "timbuktu clients", "count of timbuktu clients discovered" },
-    { "timbuktu flows", "count of timbuktu flows discovered" },
-    { "tns clients", "count of tns clients discovered" },
-    { "tns flows", "count of tns flows discovered" },
-    { "vnc clients", "count of vnc clients discovered" },
-    { "yahoo messenger clients", "count of Yahoo Messenger clients discovered" },
+    { "smtp_mutt_clients", "count of Mutt smtp clients discovered" },
+    { "smtp_thunderbird_clients", "count of Thunderbird smtp clients discovered" },
+    { "smtp_flows", "count of smtp flows discovered" },
+    { "smtps_flows", "count of smtps flows discovered" },
+    { "snmp_flows", "count of snmp flows discovered" },
+    { "ssh_clients", "count of ssh clients discovered" },
+    { "ssh_flows", "count of ssh flows discovered" },
+    { "ssl_flows", "count of ssl flows discovered" },
+    { "telnet_flows", "count of telnet flows discovered" },
+    { "tftp_flows", "count of tftp flows discovered" },
+    { "timbuktu_clients", "count of timbuktu clients discovered" },
+    { "timbuktu_flows", "count of timbuktu flows discovered" },
+    { "tns_clients", "count of tns clients discovered" },
+    { "tns_flows", "count of tns flows discovered" },
+    { "vnc_clients", "count of vnc clients discovered" },
+    { "yahoo_messenger_clients", "count of Yahoo Messenger clients discovered" },
     { nullptr, nullptr }
 };
 
index 3a7cf047c9d259b17ec359e08c1f4f0d88da5959..a39b70f5d5ffec57d70e37687a48ab3d81afd047 100644 (file)
@@ -60,27 +60,27 @@ enum PegCounts
 
 const PegInfo norm_names[] =
 {
-    { "ip4 trim", "eth packets trimmed to datagram size" },
-    { "ip4 tos", "type of service normalizations" },
-    { "ip4 df", "don't frag bit normalizations" },
-    { "ip4 rf", "reserved flag bit clears" },
-    { "ip4 ttl", "time-to-live normalizations" },
-    { "ip4 opts", "ip4 options cleared" },
-    { "icmp4 echo", "icmp4 ping normalizations" },
-    { "ip6 hops", "ip6 hop limit normalizations" },
-    { "ip6 options", "ip6 options cleared" },
-    { "icmp6 echo", "icmp6 echo normalizations" },
-    { "tcp syn options", "SYN only options cleared from non-SYN packets" },
-    { "tcp options", "packets with options cleared" },
-    { "tcp paddding", "packets with padding cleared" },
-    { "tcp reserved", "packets with reserved bits cleared" },
-    { "tcp nonce", "packets with nonce bit cleared" },
-    { "tcp urgent ptr", "packets without data with urgent pointer cleared" },
-    { "tcp ecn pkt", "packets with ECN bits cleared" },
-    { "tcp ts ecr", "timestamp cleared on non-ACKs" },
-    { "tcp req urg", "cleared urgent pointer when urgent flag is not set" },
-    { "tcp req pay", "cleared urgent pointer and urgent flag when there is no payload" },
-    { "tcp req urp", "cleared the urgent flag if the urgent pointer is not set" },
+    { "ip4_trim", "eth packets trimmed to datagram size" },
+    { "ip4_tos", "type of service normalizations" },
+    { "ip4_df", "don't frag bit normalizations" },
+    { "ip4_rf", "reserved flag bit clears" },
+    { "ip4_ttl", "time-to-live normalizations" },
+    { "ip4_opts", "ip4 options cleared" },
+    { "icmp4_echo", "icmp4 ping normalizations" },
+    { "ip6_hops", "ip6 hop limit normalizations" },
+    { "ip6_options", "ip6 options cleared" },
+    { "icmp6_echo", "icmp6 echo normalizations" },
+    { "tcp_syn_options", "SYN only options cleared from non-SYN packets" },
+    { "tcp_options", "packets with options cleared" },
+    { "tcp_paddding", "packets with padding cleared" },
+    { "tcp_reserved", "packets with reserved bits cleared" },
+    { "tcp_nonce", "packets with nonce bit cleared" },
+    { "tcp_urgent_ptr", "packets without data with urgent pointer cleared" },
+    { "tcp_ecn_pkt", "packets with ECN bits cleared" },
+    { "tcp_ts_ecr", "timestamp cleared on non-ACKs" },
+    { "tcp_req_urg", "cleared urgent pointer when urgent flag is not set" },
+    { "tcp_req_pay", "cleared urgent pointer and urgent flag when there is no payload" },
+    { "tcp_req_urp", "cleared the urgent flag if the urgent pointer is not set" },
     { nullptr, nullptr }
 };
 
index ac3510224288eff7a554b7a978e890e58a5e16da..caabb52aaea9ff5e83917bc0cd1801630f74799d 100644 (file)
@@ -377,7 +377,7 @@ void NormalizeModule::add_test_peg(const PegInfo& norm) const
 {
     PegInfo test;
 
-    std::string* test_name = new std::string("test ");
+    std::string* test_name = new std::string("test_");
     test_name->append(norm.name);
     test_text.push_back(test_name);
     test.name = test_text.back()->c_str();
index 947be95d61cc21347920bef591ca4278fdbba0e3..370915014987d2ec620dea1a27af005b21cf161e 100644 (file)
@@ -83,13 +83,16 @@ public:
 
 private:
     PegCount* counts;
-    PegInfo pegs[6] = {
-        {"zero", ""},
-        {"one", ""},
-        {"two", ""},
-        {"three", ""},
-        {"four", ""},
-        {nullptr, nullptr}};
+
+    PegInfo pegs[6] =
+    {
+        { "zero", ""},
+        { "one", ""},
+        { "two", ""},
+        { "three", ""},
+        { "four", ""},
+        { nullptr, nullptr }
+    };
 };
 
 class MockBaseTracker : public BaseTracker
index 42c12aec98e2216881e156bc82ebdfb929feab76..0906c10763776380d1097e8f5c7caf682623a07d 100644 (file)
@@ -42,7 +42,7 @@ const PegInfo reputation_peg_names[] =
     { "blacklisted", "number of packets blacklisted" },
     { "whitelisted", "number of packets whitelisted" },
     { "monitored", "number of packets monitored" },
-    { "memory allocated", "total memory allocated" },
+    { "memory_allocated", "total memory allocated" },
 
     { nullptr, nullptr }
 };
index 57a782687d1d31df79cdad8ddfe8b03eff147b47..b703ecb4a53ef36d94c71498016477de27e847b4 100644 (file)
@@ -35,56 +35,47 @@ using namespace std;
 static const PegInfo dce2_smb_pegs[] =
 {
     { "events", "total events" },
-    { "PDUs", "total connection-oriented PDUs" },
-    { "Binds", "total connection-oriented binds" },
-    { "Bind acks", "total connection-oriented binds acks" },
-    { "Alter contexts", "total connection-oriented alter contexts" },
-    { "Alter context responses",
-      "total connection-oriented alter context responses" },
-    { "Bind naks", "total connection-oriented bind naks" },
-    { "Requests", "total connection-oriented requests" },
-    { "Responses", "total connection-oriented responses" },
-    { "Cancels", "total connection-oriented cancels" },
-    { "Orphaned", "total connection-oriented orphaned" },
-    { "Faults", "total connection-oriented faults" },
-    { "Auth3s", "total connection-oriented auth3s" },
-    { "Shutdowns", "total connection-oriented shutdowns" },
-    { "Rejects", "total connection-oriented rejects" },
-    { "MS RPC/HTTP PDUs", "total connection-oriented MS requests to send RPC over HTTP" },
-    { "Other requests", "total connection-oriented other requests" },
-    { "Other responses", "total connection-oriented other responses" },
-    { "Request fragments", "total connection-oriented request fragments" },
-    { "Response fragments", "total connection-oriented response fragments" },
-    { "Client max fragment size",
-      "connection-oriented client maximum fragment size" },
-    { "Client min fragment size",
-      "connection-oriented client minimum fragment size" },
-    { "Client segs reassembled",
-      "total connection-oriented client segments reassembled" },
-    { "Client frags reassembled",
-      "total connection-oriented client fragments reassembled" },
-    { "Server max fragment size",
-      "connection-oriented server maximum fragment size" },
-    { "Server min fragment size",
-      "connection-oriented server minimum fragment size" },
-    { "Server segs reassembled",
-      "total connection-oriented server segments reassembled" },
-    { "Server frags reassembled",
-      "total connection-oriented server fragments reassembled" },
-    { "Sessions", "total smb sessions" },
-    { "Packets", "total smb packets" },
-    { "Ignored bytes", "total ignored bytes" },
-    { "Client segs reassembled", "total smb client segments reassembled" },
-    { "Server segs reassembled", "total smb server segments reassembled" },
-    { "Max outstanding requests", "total smb maximum outstanding requests" },
-    { "Files processed", "total smb files processed" },
-    { "SMBv2 create", "total number of SMBv2 create packets seen" },
-    { "SMBv2 write", "total number of SMBv2 write packets seen" },
-    { "SMBv2 read", "total number of SMBv2 read packets seen" },
-    { "SMBv2 set info", "total number of SMBv2 set info packets seen" },
-    { "SMBv2 tree connect", "total number of SMBv2 tree connect packets seen" },
-    { "SMBv2 tree disconnect", "total number of SMBv2 tree disconnect packets seen" },
-    { "SMBv2 close", "total number of SMBv2 close packets seen" },
+    { "pdus", "total connection-oriented PDUs" },
+    { "binds", "total connection-oriented binds" },
+    { "bind_acks", "total connection-oriented binds acks" },
+    { "alter_contexts", "total connection-oriented alter contexts" },
+    { "alter_context_responses", "total connection-oriented alter context responses" },
+    { "bind_naks", "total connection-oriented bind naks" },
+    { "requests", "total connection-oriented requests" },
+    { "responses", "total connection-oriented responses" },
+    { "cancels", "total connection-oriented cancels" },
+    { "orphaned", "total connection-oriented orphaned" },
+    { "faults", "total connection-oriented faults" },
+    { "auth3s", "total connection-oriented auth3s" },
+    { "shutdowns", "total connection-oriented shutdowns" },
+    { "rejects", "total connection-oriented rejects" },
+    { "ms_rpc_http_pdus", "total connection-oriented MS requests to send RPC over HTTP" },
+    { "other_requests", "total connection-oriented other requests" },
+    { "other_responses", "total connection-oriented other responses" },
+    { "request_fragments", "total connection-oriented request fragments" },
+    { "response_fragments", "total connection-oriented response fragments" },
+    { "client_max_fragment_size", "connection-oriented client maximum fragment size" },
+    { "client_min_fragment_size", "connection-oriented client minimum fragment size" },
+    { "client_segs_reassembled", "total connection-oriented client segments reassembled" },
+    { "client_frags_reassembled", "total connection-oriented client fragments reassembled" },
+    { "server_max_fragment_size", "connection-oriented server maximum fragment size" },
+    { "server_min_fragment_size", "connection-oriented server minimum fragment size" },
+    { "server_segs_reassembled", "total connection-oriented server segments reassembled" },
+    { "server_frags_reassembled", "total connection-oriented server fragments reassembled" },
+    { "sessions", "total smb sessions" },
+    { "packets", "total smb packets" },
+    { "ignored_bytes", "total ignored bytes" },
+    { "client_segs_reassembled", "total smb client segments reassembled" },
+    { "server_segs_reassembled", "total smb server segments reassembled" },
+    { "max_outstanding_requests", "total smb maximum outstanding requests" },
+    { "files_processed", "total smb files processed" },
+    { "smbv2_create", "total number of SMBv2 create packets seen" },
+    { "smbv2_write", "total number of SMBv2 write packets seen" },
+    { "smbv2_read", "total number of SMBv2 read packets seen" },
+    { "smbv2_set_info", "total number of SMBv2 set info packets seen" },
+    { "smbv2_tree_connect", "total number of SMBv2 tree connect packets seen" },
+    { "smbv2_tree_disconnect", "total number of SMBv2 tree disconnect packets seen" },
+    { "smbv2_close", "total number of SMBv2 close packets seen" },
     { nullptr, nullptr }
 };
 
index 928d2470c1620106de218f910db011c7a263aec1..fd32ed6742e95acfbe8acc4325b060bbe3c309b3 100644 (file)
@@ -65,44 +65,35 @@ static const RuleMap dce2_tcp_rules[] =
 static const PegInfo dce2_tcp_pegs[] =
 {
     { "events", "total events" },
-    { "PDUs", "total connection-oriented PDUs" },
-    { "Binds", "total connection-oriented binds" },
-    { "Bind acks", "total connection-oriented binds acks" },
-    { "Alter contexts", "total connection-oriented alter contexts" },
-    { "Alter context responses",
-      "total connection-oriented alter context responses" },
-    { "Bind naks", "total connection-oriented bind naks" },
-    { "Requests", "total connection-oriented requests" },
-    { "Responses", "total connection-oriented responses" },
-    { "Cancels", "total connection-oriented cancels" },
-    { "Orphaned", "total connection-oriented orphaned" },
-    { "Faults", "total connection-oriented faults" },
-    { "Auth3s", "total connection-oriented auth3s" },
-    { "Shutdowns", "total connection-oriented shutdowns" },
-    { "Rejects", "total connection-oriented rejects" },
-    { "MS RPC/HTTP PDUs", "total connection-oriented MS requests to send RPC over HTTP" },
-    { "Other requests", "total connection-oriented other requests" },
-    { "Other responses", "total connection-oriented other responses" },
-    { "Request fragments", "total connection-oriented request fragments" },
-    { "Response fragments", "total connection-oriented response fragments" },
-    { "Client max fragment size",
-      "connection-oriented client maximum fragment size" },
-    { "Client min fragment size",
-      "connection-oriented client minimum fragment size" },
-    { "Client segs reassembled",
-      "total connection-oriented client segments reassembled" },
-    { "Client frags reassembled",
-      "total connection-oriented client fragments reassembled" },
-    { "Server max fragment size",
-      "connection-oriented server maximum fragment size" },
-    { "Server min fragment size",
-      "connection-oriented server minimum fragment size" },
-    { "Server segs reassembled",
-      "total connection-oriented server segments reassembled" },
-    { "Server frags reassembled",
-      "total connection-oriented server fragments reassembled" },
-    { "tcp sessions", "total tcp sessions" },
-    { "tcp packets", "total tcp packets" },
+    { "pdus", "total connection-oriented PDUs" },
+    { "binds", "total connection-oriented binds" },
+    { "bind_acks", "total connection-oriented binds acks" },
+    { "alter_contexts", "total connection-oriented alter contexts" },
+    { "alter_context_responses", "total connection-oriented alter context responses" },
+    { "bind_naks", "total connection-oriented bind naks" },
+    { "requests", "total connection-oriented requests" },
+    { "responses", "total connection-oriented responses" },
+    { "cancels", "total connection-oriented cancels" },
+    { "orphaned", "total connection-oriented orphaned" },
+    { "faults", "total connection-oriented faults" },
+    { "auth3s", "total connection-oriented auth3s" },
+    { "shutdowns", "total connection-oriented shutdowns" },
+    { "rejects", "total connection-oriented rejects" },
+    { "ms_rpc_http_pdus", "total connection-oriented MS requests to send RPC over HTTP" },
+    { "other_requests", "total connection-oriented other requests" },
+    { "other_responses", "total connection-oriented other responses" },
+    { "request_fragments", "total connection-oriented request fragments" },
+    { "response_fragments", "total connection-oriented response fragments" },
+    { "client_max_fragment_size", "connection-oriented client maximum fragment size" },
+    { "client_min_fragment_size", "connection-oriented client minimum fragment size" },
+    { "client_segs_reassembled", "total connection-oriented client segments reassembled" },
+    { "client_frags_reassembled", "total connection-oriented client fragments reassembled" },
+    { "server_max_fragment_size", "connection-oriented server maximum fragment size" },
+    { "server_min_fragment_size", "connection-oriented server minimum fragment size" },
+    { "server_segs_reassembled", "total connection-oriented server segments reassembled" },
+    { "server_frags_reassembled", "total connection-oriented server fragments reassembled" },
+    { "tcp_sessions", "total tcp sessions" },
+    { "tcp_packets", "total tcp packets" },
     { nullptr, nullptr }
 };
 
index 222bb1257ddcd012a04a8a1e2f3d7ff19a8d3e4b..880f9298d48950b5748f48d33ff6e2fe082b9d6f 100644 (file)
@@ -51,29 +51,26 @@ static const RuleMap dce2_udp_rules[] =
 static const PegInfo dce2_udp_pegs[] =
 {
     { "events", "total events" },
-    { "udp sessions", "total udp sessions" },
-    { "udp packets", "total udp packets" },
-    { "Requests", "total connection-less requests" },
-    { "Acks", "total connection-less acks" },
-    { "Cancels", "total connection-less cancels" },
-    { "Client facks", "total connection-less client facks" },
-    { "Ping", "total connection-less ping" },
-    { "Responses", "total connection-less responses" },
-    { "Rejects", "total connection-less rejects" },
-    { "Cancel acks", "total connection-less cancel acks" },
-    { "Server facks", "total connection-less server facks" },
-    { "Faults", "total connection-less faults" },
-    { "No calls", "total connection-less no calls" },
-    { "Working", "total connection-less working" },
-    { "Other requests", "total connection-less other requests" },
-    { "Other responses", "total connection-less other responses" },
-    { "Fragments", "total connection-less fragments" },
-    { "Max fragment size",
-      "connection-less maximum fragment size" },
-    { "Frags reassembled",
-      "total connection-less fragments reassembled" },
-    { "Max seqnum",
-      "max connection-less seqnum" },
+    { "udp_sessions", "total udp sessions" },
+    { "udp_packets", "total udp packets" },
+    { "requests", "total connection-less requests" },
+    { "acks", "total connection-less acks" },
+    { "cancels", "total connection-less cancels" },
+    { "client_facks", "total connection-less client facks" },
+    { "ping", "total connection-less ping" },
+    { "responses", "total connection-less responses" },
+    { "rejects", "total connection-less rejects" },
+    { "cancel_acks", "total connection-less cancel acks" },
+    { "server_facks", "total connection-less server facks" },
+    { "faults", "total connection-less faults" },
+    { "no_calls", "total connection-less no calls" },
+    { "working", "total connection-less working" },
+    { "other_requests", "total connection-less other requests" },
+    { "other_responses", "total connection-less other responses" },
+    { "fragments", "total connection-less fragments" },
+    { "max_fragment_size", "connection-less maximum fragment size" },
+    { "frags_reassembled", "total connection-less fragments reassembled" },
+    { "max_seqnum", "max connection-less seqnum" },
     { nullptr, nullptr }
 };
 
index a24153402ece7892c65a42bf95d9a996d7a3c216..63273c7043caf4234b88a487306aec176e96a704 100644 (file)
@@ -51,11 +51,11 @@ static const RuleMap dnp3_rules[] =
 
 static const PegInfo dnp3_pegs[] =
 {
-    { "total packets", "total packets" },
-    { "udp packets", "total udp packets" },
-    { "tcp pdus", "total tcp pdus" },
-    { "dnp3 link layer frames", "total dnp3 link layer frames" },
-    { "dnp3 application pdus", "total dnp3 application pdus" },
+    { "total_packets", "total packets" },
+    { "udp_packets", "total udp packets" },
+    { "tcp_pdus", "total tcp pdus" },
+    { "dnp3_link_layer_frames", "total dnp3 link layer frames" },
+    { "dnp3_application_pdus", "total dnp3 application pdus" },
 
     { nullptr, nullptr }
 };
index 0a9201e99b482599e414edf3a3936bf6177e365f..069cecd8ec72c8b1bf3c3c22a4c383bab6d9a45a 100644 (file)
@@ -44,8 +44,8 @@ const PegInfo peg_names[] =
 {
     { "sessions", "total sessions processed" },
     { "events", "requests" },
-    { "unknown types", "unknown message types" },
-    { "unknown infos", "unknown information elements" },
+    { "unknown_types", "unknown message types" },
+    { "unknown_infos", "unknown information elements" },
 
     { nullptr, nullptr }
 };
index 90ef80701a18035534a62911220e15351d16ea8d..ea67c04337cda7512c3053c9fc301c20c83fba4c 100644 (file)
@@ -360,20 +360,20 @@ const PegInfo HttpModule::peg_names[PEG_COUNT_MAX+1] =
     { "inspections", "total message sections inspected" },
     { "requests", "HTTP request messages inspected" },
     { "responses", "HTTP response messages inspected" },
-    { "GET requests", "GET requests inspected" },
-    { "HEAD requests", "HEAD requests inspected" },
-    { "POST requests", "POST requests inspected" },
-    { "PUT requests", "PUT requests inspected" },
-    { "DELETE requests", "DELETE requests inspected" },
-    { "CONNECT requests", "CONNECT requests inspected" },
-    { "OPTIONS requests", "OPTIONS requests inspected" },
-    { "TRACE requests", "TRACE requests inspected" },
-    { "other requests", "other request methods inspected" },
-    { "request bodies", "POST, PUT, and other requests with message bodies" },
+    { "get_requests", "GET requests inspected" },
+    { "head_requests", "HEAD requests inspected" },
+    { "post_requests", "POST requests inspected" },
+    { "put_requests", "PUT requests inspected" },
+    { "delete_requests", "DELETE requests inspected" },
+    { "connect_requests", "CONNECT requests inspected" },
+    { "options_requests", "OPTIONS requests inspected" },
+    { "trace_requests", "TRACE requests inspected" },
+    { "other_requests", "other request methods inspected" },
+    { "request_bodies", "POST, PUT, and other requests with message bodies" },
     { "chunked", "chunked message bodies" },
-    { "URI normalizations", "URIs needing to be normalization" },
-    { "URI path", "URIs with path problems" },
-    { "URI coding", "URIs with character coding problems" },
+    { "uri_normalizations", "URIs needing to be normalization" },
+    { "uri_path", "URIs with path problems" },
+    { "uri_coding", "URIs with character coding problems" },
     { nullptr, nullptr }
 };
 
index 8a107624f00a8ad510d37b3857aa5c39890f79d3..a49fbffc3f2c9745b612a8f45fcba560c2eba4a8 100644 (file)
@@ -124,14 +124,14 @@ const PegInfo imap_peg_names[] =
 {
     { "packets", "total packets processed" },
     { "sessions", "total imap sessions" },
-    { "b64 attachments", "total base64 attachments decoded" },
-    { "b64 decoded bytes", "total base64 decoded bytes" },
-    { "qp attachments", "total quoted-printable attachments decoded" },
-    { "qp decoded bytes", "total quoted-printable decoded bytes" },
-    { "uu attachments", "total uu attachments decoded" },
-    { "uu decoded bytes", "total uu decoded bytes" },
-    { "non-encoded attachments", "total non-encoded attachments extracted" },
-    { "non-encoded bytes", "total non-encoded extracted bytes" },
+    { "b64_attachments", "total base64 attachments decoded" },
+    { "b64_decoded_bytes", "total base64 decoded bytes" },
+    { "qp_attachments", "total quoted-printable attachments decoded" },
+    { "qp_decoded_bytes", "total quoted-printable decoded bytes" },
+    { "uu_attachments", "total uu attachments decoded" },
+    { "uu_decoded_bytes", "total uu decoded bytes" },
+    { "non_encoded_attachments", "total non-encoded attachments extracted" },
+    { "non_encoded_bytes", "total non-encoded extracted bytes" },
 
     { nullptr, nullptr }
 };
index 5750e7f5ee910e6cf7d8a90a112ee0becb7d9a15..04b77e88f8d9d475e2b379998eaa5f912d6cddfb 100644 (file)
@@ -79,14 +79,14 @@ const PegInfo pop_peg_names[] =
 {
     { "packets", "total packets processed" },
     { "sessions", "total pop sessions" },
-    { "b64 attachments", "total base64 attachments decoded" },
-    { "b64 decoded bytes", "total base64 decoded bytes" },
-    { "qp attachments", "total quoted-printable attachments decoded" },
-    { "qp decoded bytes", "total quoted-printable decoded bytes" },
-    { "uu attachments", "total uu attachments decoded" },
-    { "uu decoded bytes", "total uu decoded bytes" },
-    { "non-encoded attachments", "total non-encoded attachments extracted" },
-    { "non-encoded bytes", "total non-encoded extracted bytes" },
+    { "b64_attachments", "total base64 attachments decoded" },
+    { "b64_decoded_bytes", "total base64 decoded bytes" },
+    { "qp_attachments", "total quoted-printable attachments decoded" },
+    { "qp_decoded_bytes", "total quoted-printable decoded bytes" },
+    { "uu_attachments", "total uu attachments decoded" },
+    { "uu_decoded_bytes", "total uu decoded bytes" },
+    { "non_encoded_attachments", "total non-encoded attachments extracted" },
+    { "non_encoded_bytes", "total non-encoded extracted bytes" },
 
     { nullptr, nullptr }
 };
index 086f5206f0811d2b6a26b64a99d55ac085ab4f77..a48231fabb20529d3652cd043f205afbf8c76e15 100644 (file)
@@ -140,9 +140,9 @@ static const PegInfo sip_pegs[] =
     { "sessions", "total sessions" },
     { "events", "events generated" },
     { "dialogs", "total dialogs" },
-    { "ignored channels", "total channels ignored" },
-    { "ignored sessions", "total sessions ignored" },
-    { "total requests", "total requests" },
+    { "ignored_channels", "total channels ignored" },
+    { "ignored_sessions", "total sessions ignored" },
+    { "total_requests", "total requests" },
     { "invite", "invite" },
     { "cancel", "cancel" },
     { "ack", "ack" },
@@ -157,7 +157,7 @@ static const PegInfo sip_pegs[] =
     { "message", "message" },
     { "notify", "notify" },
     { "prack", "prack" },
-    { "total responses", "total responses" },
+    { "total_responses", "total responses" },
     { "1xx", "1xx" },
     { "2xx", "2xx" },
     { "3xx", "3xx" },
index 1e5b098342613dd79eadd11c5db146a932251f83..2146a337c545dca39a1c8512b6c50331bdf2506c 100644 (file)
@@ -157,16 +157,16 @@ const PegInfo smtp_peg_names[] =
 {
     { "packets", "total packets processed" },
     { "sessions", "total smtp sessions" },
-    { "concurrent sessions", "total concurrent smtp sessions" },
-    { "max concurrent sessions", "maximum concurrent smtp sessions" },
-    { "b64 attachments", "total base64 attachments decoded" },
-    { "b64 decoded bytes", "total base64 decoded bytes" },
-    { "qp attachments", "total quoted-printable attachments decoded" },
-    { "qp decoded bytes", "total quoted-printable decoded bytes" },
-    { "uu attachments", "total uu attachments decoded" },
-    { "uu decoded bytes", "total uu decoded bytes" },
-    { "non-encoded attachments", "total non-encoded attachments extracted" },
-    { "non-encoded bytes", "total non-encoded extracted bytes" },
+    { "concurrent_sessions", "total concurrent smtp sessions" },
+    { "max_concurrent_sessions", "maximum concurrent smtp sessions" },
+    { "b64_attachments", "total base64 attachments decoded" },
+    { "b64_decoded_bytes", "total base64 decoded bytes" },
+    { "qp_attachments", "total quoted-printable attachments decoded" },
+    { "qp_decoded_bytes", "total quoted-printable decoded bytes" },
+    { "uu_attachments", "total uu attachments decoded" },
+    { "uu_decoded_bytes", "total uu decoded bytes" },
+    { "non_encoded_attachments", "total non-encoded attachments extracted" },
+    { "non_encoded_bytes", "total non-encoded extracted bytes" },
 
     { nullptr, nullptr }
 };
index d728424018f09efb19a8ff020b55cb48115d6686..34af34a11617bbfd28785f1714ebeba964b6e98f 100644 (file)
@@ -50,22 +50,22 @@ const PegInfo ssl_peg_names[] =
 {
     { "packets", "total packets processed" },
     { "decoded", "ssl packets decoded" },
-    { "client hello", "total client hellos" },
-    { "server hello", "total server hellos" },
+    { "client_hello", "total client hellos" },
+    { "server_hello", "total server hellos" },
     { "certificate", "total ssl certificates" },
-    { "server done", "total server done" },
-    { "client key exchange", "total client key exchanges" },
-    { "server key exchange", "total server key exchanges" },
-    { "change cipher", "total change cipher records" },
+    { "server_done", "total server done" },
+    { "client_key_exchange", "total client key exchanges" },
+    { "server_key_exchange", "total server key exchanges" },
+    { "change_cipher", "total change cipher records" },
     { "finished", "total handshakes finished" },
-    { "client application", "total client application records" },
-    { "server application", "total server application records" },
+    { "client_application", "total client application records" },
+    { "server_application", "total server application records" },
     { "alert", "total ssl alert records" },
-    { "unrecognized records", "total unrecognized records" },
-    { "handshakes completed", "total completed ssl handshakes" },
-    { "bad handshakes", "total bad handshakes" },
-    { "sessions ignored", "total sessions ignore" },
-    { "detection disabled", "total detection disabled" },
+    { "unrecognized_records", "total unrecognized records" },
+    { "handshakes_completed", "total completed ssl handshakes" },
+    { "bad_handshakes", "total bad handshakes" },
+    { "sessions_ignored", "total sessions ignore" },
+    { "detection_disabled", "total detection disabled" },
 
     { nullptr, nullptr }
 };
index 26e80a757b6b8243e5d328a40f78e4dbcce44742..f95b1b6f72ddb780fb7fb7f61febf27d9a313200 100644 (file)
@@ -48,12 +48,12 @@ struct WizStats
 
 const PegInfo wiz_pegs[] =
 {
-    { "tcp scans", "tcp payload scans" },
-    { "tcp hits", "tcp identifications" },
-    { "udp scans", "udp payload scans" },
-    { "udp hits", "udp identifications" },
-    { "user scans", "user payload scans" },
-    { "user hits", "user identifications" },
+    { "tcp_scans", "tcp payload scans" },
+    { "tcp_hits", "tcp identifications" },
+    { "udp_scans", "udp payload scans" },
+    { "udp_hits", "udp identifications" },
+    { "user_scans", "user payload scans" },
+    { "user_hits", "user identifications" },
     { nullptr, nullptr }
 };
 
index 8fca8bd450350371e05a40ff2fd86a4cc3cc8fe9..62360a77e59ad7b7053b2b5f5990036960206352 100644 (file)
 
 #include "side_channel.h"
 
-static const PegInfo sc_pegs[] =
-{
-    { nullptr, nullptr }
-};
-
 extern THREAD_LOCAL SimpleStats sc_stats;
 extern THREAD_LOCAL ProfileStats sc_perf_stats;
 
@@ -177,9 +172,6 @@ bool SideChannelModule::end(const char* fqn, int idx, SnortConfig*)
     return true;
 }
 
-const PegInfo* SideChannelModule::get_pegs() const
-{ return sc_pegs; }
-
 PegCount* SideChannelModule::get_counts() const
 { return (PegCount*)&sc_stats; }
 
index 4f918e572a64ba99c02c9f9bd01482fe163afdd5..d90e19e845ab16ed4f5701bb58b8ac06668d1843 100644 (file)
@@ -46,9 +46,7 @@ public:
     bool begin(const char*, int, SnortConfig*) override;
     bool end(const char*, int, SnortConfig*) override;
 
-    const PegInfo* get_pegs() const override;
     PegCount* get_counts() const override;
-
     ProfileStats* get_profile() const override;
 
 private:
index 41b38a53c1f01aacde93d2efb79f016953cd9ee0..3b966eb303ab500a5b9dfe38d8ad8a8037e423b3 100644 (file)
@@ -40,14 +40,14 @@ static BaseStats g_stats;
 THREAD_LOCAL BaseStats stream_base_stats;
 
 #define PROTO_PEGS(proto_str) \
-    { proto_str " flows", "total " proto_str " sessions" }, \
-    { proto_str " total prunes", "total " proto_str " sessions pruned" }, \
-    { proto_str " idle prunes", proto_str " sessions pruned due to timeout" }, \
-    { proto_str " excess prunes", proto_str " sessions pruned due to excess" }, \
-    { proto_str " uni prunes", proto_str " uni sessions pruned" }, \
-    { proto_str " preemptive prunes", proto_str " sessions pruned during preemptive pruning" }, \
-    { proto_str " memcap prunes", proto_str " sessions pruned due to memcap" }, \
-    { proto_str " ha prunes", proto_str " sessions pruned by high availability sync" }
+    { proto_str "_flows", "total " proto_str " sessions" }, \
+    { proto_str "_total_prunes", "total " proto_str " sessions pruned" }, \
+    { proto_str "_idle_prunes", proto_str " sessions pruned due to timeout" }, \
+    { proto_str "_excess_prunes", proto_str " sessions pruned due to excess" }, \
+    { proto_str "_uni_prunes", proto_str " uni sessions pruned" }, \
+    { proto_str "_preemptive_prunes", proto_str " sessions pruned during preemptive pruning" }, \
+    { proto_str "_memcap_prunes", proto_str " sessions pruned due to memcap" }, \
+    { proto_str "_ha_prunes", proto_str " sessions pruned by high availability sync" }
 
 #define SET_PROTO_COUNTS(proto, pkttype) \
     stream_base_stats.proto ## _flows = flow_con->get_flows(PktType::pkttype); \
index 2248c92a38a666357872916e9ba983dcde44edce..dcae10ef70dc83b3cc744932b0ac12105077a5f8 100644 (file)
@@ -38,7 +38,7 @@
 
 const PegInfo icmp_pegs[] =
 {
-    SESSION_PEGS("icmp"),
+    SESSION_PEGS("icmp_"),
     { nullptr, nullptr }
 };
 
index 7faf39946be060dc1fd98a0bd970853085934fdd..b8b3238cb22c25c43b032ef0a505d2ce344d6429 100644 (file)
 
 const PegInfo ip_pegs[] =
 {
-    SESSION_PEGS("ip"),
-    { "total frags", "total fragments" },
-    { "current frags", "current fragments" },
-    { "max frags", "max fragments" },
+    SESSION_PEGS("ip_"),
+    { "total_frags", "total fragments" },
+    { "current_frags", "current fragments" },
+    { "max_frags", "max fragments" },
     { "reassembled", "reassembled datagrams" },
     { "discards", "fragments discarded" },
-    { "frag timeouts", "datagrams abandoned" },
+    { "frag_timeouts", "datagrams abandoned" },
     { "overlaps", "overlapping fragments" },
     { "anomalies", "anomalies detected" },
     { "alerts", "alerts generated" },
     { "drops", "fragments dropped" },
-    { "trackers added", "datagram trackers created" },
-    { "trackers freed", "datagram trackers released" },
-    { "trackers cleared", "datagram trackers cleared" },
-    { "trackers completed", "datagram trackers completed" },
-    { "nodes inserted", "fragments added to tracker" },
-    { "nodes deleted", "fragments deleted from tracker" },
-    { "memory used", "current memory usage in bytes" },
-    { "reassembled bytes", "total reassembled bytes" },
-    { "fragmented bytes", "total fragmented bytes" },
+    { "trackers_added", "datagram trackers created" },
+    { "trackers_freed", "datagram trackers released" },
+    { "trackers_cleared", "datagram trackers cleared" },
+    { "trackers_completed", "datagram trackers completed" },
+    { "nodes_inserted", "fragments added to tracker" },
+    { "nodes_deleted", "fragments deleted from tracker" },
+    { "memory_used", "current memory usage in bytes" },
+    { "reassembled_bytes", "total reassembled bytes" },
+    { "fragmented_bytes", "total fragmented bytes" },
     { nullptr, nullptr }
 };
 
index 8efed6742c1fe8debe612946ad17425f8c7c7b19..32973bc69a949e3d99814f3261d2a30815aaad66 100644 (file)
@@ -43,30 +43,30 @@ THREAD_LOCAL ProfileStats s5TcpBuildPacketPerfStats;
 
 const PegInfo tcp_pegs[] =
 {
-    SESSION_PEGS("tcp"),
+    SESSION_PEGS("tcp_"),
     { "resyns", "SYN received on established session" },
     { "discards", "tcp packets discarded" },
     { "events", "events generated" },
     { "ignored", "tcp packets ignored" },
     { "untracked", "tcp packets not tracked" },
-    { "syn trackers", "tcp session tracking started on syn" },
-    { "syn-ack trackers", "tcp session tracking started on syn-ack" },
-    { "3way trackers", "tcp session tracking started on ack" },
-    { "data trackers", "tcp session tracking started on data" },
-    { "segs queued", "total segments queued" },
-    { "segs released", "total segments released" },
-    { "segs split", "tcp segments split when reassembling PDUs" },
-    { "segs used", "queued tcp segments applied to reassembled PDUs" },
-    { "rebuilt packets", "total reassembled PDUs" },
-    { "rebuilt buffers", "rebuilt PDU sections" },
-    { "rebuilt bytes", "total rebuilt bytes" },
+    { "syn_trackers", "tcp session tracking started on syn" },
+    { "syn_ack_trackers", "tcp session tracking started on syn-ack" },
+    { "3way_trackers", "tcp session tracking started on ack" },
+    { "data_trackers", "tcp session tracking started on data" },
+    { "segs_queued", "total segments queued" },
+    { "segs_released", "total segments released" },
+    { "segs_split", "tcp segments split when reassembling PDUs" },
+    { "segs_used", "queued tcp segments applied to reassembled PDUs" },
+    { "rebuilt_packets", "total reassembled PDUs" },
+    { "rebuilt_buffers", "rebuilt PDU sections" },
+    { "rebuilt_bytes", "total rebuilt bytes" },
     { "overlaps", "overlapping segments queued" },
     { "gaps", "missing data between PDUs" },
-    { "max segs", "number of times the maximum queued segment limit was reached" },
-    { "max bytes", "number of times the maximum queued byte limit was reached" },
-    { "internal events", "135:X events generated" },
-    { "client cleanups", "number of times data from server was flushed when session released" },
-    { "server cleanups", "number of times data from client was flushed when session released" },
+    { "max_segs", "number of times the maximum queued segment limit was reached" },
+    { "max_bytes", "number of times the maximum queued byte limit was reached" },
+    { "internal_events", "135:X events generated" },
+    { "client_cleanups", "number of times data from server was flushed when session released" },
+    { "server_cleanups", "number of times data from client was flushed when session released" },
     { "memory", "current memory in use" },
     { "initializing", "number of sessions currently initializing" },
     { "established", "number of sessions currently established" },
index 1391af265f9d6ec3bb49d0ab82606093c44b49db..5e09a16c75b449453075612f165dedc893d7cf8b 100644 (file)
@@ -32,14 +32,14 @@ THREAD_LOCAL PegCount tcp_norm_stats[PC_TCP_MAX][NORM_MODE_MAX];
 
 static const PegInfo pegName[] =
 {
-    { "tcp trim syn", "tcp segments trimmed on SYN" },
-    { "tcp trim rst", "RST packets with data trimmed" },
-    { "tcp trim win", "data trimed to window" },
-    { "tcp trim mss", "data trimmed to MSS" },
-    { "tcp ecn session", "ECN bits cleared" },
-    { "tcp ts nop", "timestamp options cleared" },
-    { "tcp ips data", "normalized segments" },
-    { "tcp block", "blocked segments" },
+    { "tcp_trim_syn", "tcp segments trimmed on SYN" },
+    { "tcp_trim_rst", "RST packets with data trimmed" },
+    { "tcp_trim_win", "data trimed to window" },
+    { "tcp_trim_mss", "data trimmed to MSS" },
+    { "tcp_ecn_session", "ECN bits cleared" },
+    { "tcp_ts_nop", "timestamp options cleared" },
+    { "tcp_ips_data", "normalized segments" },
+    { "tcp_block", "blocked segments" },
     { nullptr, nullptr }
 };
 
index 6493004eef49a87174cb7f22f45b5bba9206df73..cfbe1fc1f996670898c9ded0f914241333ea61b6 100644 (file)
@@ -37,7 +37,7 @@
 
 const PegInfo udp_pegs[] =
 {
-    SESSION_PEGS("udp"),
+    SESSION_PEGS("udp_"),
     { nullptr, nullptr }
 };
 
index 5422819e4caacff16ccc8c445f96eca6deeac7eb..48b955bef1a14ff05aeda94982d96fd720b166f1 100644 (file)
@@ -178,8 +178,8 @@ const PegInfo daq_names[] =
     { "ignore", "total ignore verdicts" },
 
     // FIXIT-L these are not exactly DAQ counts - but they are related
-    { "internal blacklist", "packets blacklisted internally due to lack of DAQ support" },
-    { "internal whitelist", "packets whitelisted internally due to lack of DAQ support" },
+    { "internal_blacklist", "packets blacklisted internally due to lack of DAQ support" },
+    { "internal_whitelist", "packets whitelisted internally due to lack of DAQ support" },
     { "skipped", "packets skipped at startup" },
     { "idle", "attempts to acquire from DAQ without available packets" },
     { nullptr, nullptr }
@@ -188,35 +188,35 @@ const PegInfo daq_names[] =
 const PegInfo pc_names[] =
 {
     { "analyzed", "packets sent to detection" },
-    { "hard evals", "non-fast pattern rule evaluations" },
-    { "raw searches", "fast pattern searches in raw packet data" },
-    { "cooked searches", "fast pattern searches in cooked packet data" },
-    { "pkt searches", "fast pattern searches in packet data" },
-    { "alt searches", "alt fast pattern searches in packet data" },
-    { "key searches", "fast pattern searches in key buffer" },
-    { "header searches", "fast pattern searches in header buffer" },
-    { "body searches", "fast pattern searches in body buffer" },
-    { "file searches", "fast pattern searches in file buffer" },
+    { "hard_evals", "non-fast pattern rule evaluations" },
+    { "raw_searches", "fast pattern searches in raw packet data" },
+    { "cooked_searches", "fast pattern searches in cooked packet data" },
+    { "pkt_searches", "fast pattern searches in packet data" },
+    { "alt_searches", "alt fast pattern searches in packet data" },
+    { "key_searches", "fast pattern searches in key buffer" },
+    { "header_searches", "fast pattern searches in header buffer" },
+    { "body_searches", "fast pattern searches in body buffer" },
+    { "file_searches", "fast pattern searches in file buffer" },
     { "alerts", "alerts not including IP reputation" },
-    { "total alerts", "alerts including IP reputation" },
+    { "total_alerts", "alerts including IP reputation" },
     { "logged", "logged packets" },
     { "passed", "passed packets" },
-    { "match limit", "fast pattern matches not processed" },
-    { "queue limit", "events not queued because queue full" },
-    { "log limit", "events queued but not logged" },
-    { "event limit", "events filtered" },
-    { "alert limit", "events previously triggered on same PDU" },
+    { "match_limit", "fast pattern matches not processed" },
+    { "queue_limit", "events not queued because queue full" },
+    { "log_limit", "events queued but not logged" },
+    { "event_limit", "events filtered" },
+    { "alert_limit", "events previously triggered on same PDU" },
     { nullptr, nullptr }
 };
 
 const PegInfo proc_names[] =
 {
-    { "local commands", "total local commands processed" },
-    { "remote commands", "total remote commands processed" },
+    { "local_commands", "total local commands processed" },
+    { "remote_commands", "total remote commands processed" },
     { "signals", "total signals processed" },
-    { "conf reloads", "number of times configuration was reloaded" },
-    { "attribute table reloads", "number of times hosts table was reloaded" },
-    { "attribute table hosts", "total number of hosts in table" },
+    { "conf_reloads", "number of times configuration was reloaded" },
+    { "attribute_table_reloads", "number of times hosts table was reloaded" },
+    { "attribute_table_hosts", "total number of hosts in table" },
     { nullptr, nullptr }
 };