summaryrefslogtreecommitdiff
path: root/src/tsg_rule.cpp
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2023-10-11 15:29:51 +0800
committerliuxueli <[email protected]>2023-10-11 15:29:51 +0800
commit01dd1a0eb34b9cddc7fe010b2bae96a460e651bd (patch)
treeae2a6cf2c3ecd29d5259849f3fa30e99ae11309f /src/tsg_rule.cpp
parent24c3e11424c66b6ac57deef298e898a966e87af9 (diff)
支持输出动态IPPORT表的查询数及命中数统计, 区分client/serverv6.0.55
Diffstat (limited to 'src/tsg_rule.cpp')
-rw-r--r--src/tsg_rule.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index ec16fc8..e5cd335 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -2442,23 +2442,23 @@ int srt_attribute_set_dynamic_ipport_mapping(const struct streaminfo *a_stream,
if(*dest_mapping==NULL)
{
- tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_QUERY_METRICS, 1);
+ tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_S_QUERY_METRICS, 1);
int n_ex_data=maat_ipport_plugin_table_get_ex_data(feather, g_tsg_maat_rt_para.plugin_dyn_mapping_tb.id, &dest_ip, dest_port, (void **)dest_mapping, 1);
if(n_ex_data>0)
{
- tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_RESPONSE_METRICS, 1);
+ tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_S_RESPONSE_METRICS, 1);
}
}
if(*source_mapping==NULL)
{
- tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_QUERY_METRICS, 1);
+ tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_C_QUERY_METRICS, 1);
int n_ex_data=maat_ipport_plugin_table_get_ex_data(feather, g_tsg_maat_rt_para.plugin_dyn_mapping_tb.id, &source_ip, source_port, (void **)source_mapping, 1);
if(n_ex_data>0)
{
- tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_RESPONSE_METRICS, 1);
+ tsg_stat_dyn_ipport_mapping_metrics_update(a_stream->threadnum, THREAD_DYN_IPPORT_MAPPING_C_RESPONSE_METRICS, 1);
}
}