rename flow_direction to flow_type
This commit is contained in:
@@ -146,7 +146,7 @@ static void on_sess_udp_msg(struct session *sess, int topic_id, const void *msg,
|
||||
const struct timeval *tv = packet_get_timeval(pkt);
|
||||
struct plugin_ctx *ctx = (struct plugin_ctx *)plugin_ctx;
|
||||
struct session_exdata *exdata = (struct session_exdata *)session_exdata_get(sess, ctx->sess_exdata_idx);
|
||||
if (session_get_current_flow_direction(sess) == FLOW_DIRECTION_C2S)
|
||||
if (session_get_flow_type(sess) == FLOW_TYPE_C2S)
|
||||
{
|
||||
exdata->c2s_rx_pkts++;
|
||||
exdata->c2s_rx_bytes += packet_get_raw_len(pkt);
|
||||
@@ -182,7 +182,7 @@ static void on_sess_tcp_msg(struct session *sess, int topic_id, const void *msg,
|
||||
const struct timeval *tv = packet_get_timeval(pkt);
|
||||
struct plugin_ctx *ctx = (struct plugin_ctx *)plugin_ctx;
|
||||
struct session_exdata *exdata = (struct session_exdata *)session_exdata_get(sess, ctx->sess_exdata_idx);
|
||||
if (session_get_current_flow_direction(sess) == FLOW_DIRECTION_C2S)
|
||||
if (session_get_flow_type(sess) == FLOW_TYPE_C2S)
|
||||
{
|
||||
exdata->c2s_rx_pkts++;
|
||||
exdata->c2s_rx_bytes += packet_get_raw_len(pkt);
|
||||
@@ -225,7 +225,7 @@ static void on_sess_tcp_stream_msg(struct session *sess, int topic_id, const voi
|
||||
debug_plugin_log(ctx->fd, "debug plugin", "on TCP stream msg: %s", buff);
|
||||
|
||||
pthread_spin_lock(&ctx->lock);
|
||||
if (session_get_current_flow_direction(sess) == FLOW_DIRECTION_C2S)
|
||||
if (session_get_flow_type(sess) == FLOW_TYPE_C2S)
|
||||
{
|
||||
debug_plugin_log(ctx->fd, "debug plugin", "rx C2S TCP segment: len: %d, data: %p", len, data);
|
||||
hexdump_to_fd(ctx->fd, exdata->c2s_rx_tcp_bytes, data, len);
|
||||
|
||||
Reference in New Issue
Block a user