TSG-14945: 输出Application and Protocol Metrics
This commit is contained in:
@@ -11,7 +11,7 @@ enum _STATISTIC_OPT_TYPE
|
||||
_OPT_TYPE_MAX
|
||||
};
|
||||
|
||||
struct _traffic_info
|
||||
struct traffic_info
|
||||
{
|
||||
long long con_num;
|
||||
long long in_bytes;
|
||||
@@ -20,8 +20,33 @@ struct _traffic_info
|
||||
long long out_packets;
|
||||
};
|
||||
|
||||
struct traffic_packet_info
|
||||
{
|
||||
uint32_t sessions;
|
||||
uint32_t in_pkts;
|
||||
uint32_t out_pkts;
|
||||
uint32_t c2s_pkts;
|
||||
uint32_t s2c_pkts;
|
||||
uint32_t c2s_fragments;
|
||||
uint32_t s2c_fragments;
|
||||
uint32_t c2s_tcp_ooorder_pkts;
|
||||
uint32_t s2c_tcp_ooorder_pkts;
|
||||
uint32_t c2s_tcp_retransmitted_pkts;
|
||||
uint32_t s2c_tcp_retransmitted_pkts;
|
||||
uint64_t in_bytes;
|
||||
uint64_t out_bytes;
|
||||
uint64_t c2s_bytes;
|
||||
uint64_t s2c_bytes;
|
||||
uint64_t c2s_tcp_lost_bytes;
|
||||
uint64_t s2c_tcp_lost_bytes;
|
||||
uint64_t c2s_tcp_retransmitted_bytes;
|
||||
uint64_t s2c_tcp_retransmitted_bytes;
|
||||
};
|
||||
|
||||
int tsg_set_policy_flow(const struct streaminfo *a_stream, struct maat_rule *p_result, int thread_seq);
|
||||
int tsg_set_intercept_flow(struct maat_rule *p_result, struct _traffic_info *traffic_info, int thread_seq);
|
||||
int tsg_set_intercept_flow(struct maat_rule *p_result, struct traffic_info *traffic_info, int thread_seq);
|
||||
int tsg_set_statistic_opt(int value, enum _STATISTIC_OPT_TYPE type, int thread_seq);
|
||||
|
||||
int tsg_set_application_metrics(const struct streaminfo *a_stream, const char *l4_protocol, const char *app_full_path, struct traffic_packet_info *app_statis, int thread_seq);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user