rename session_get0_readable_addr() to session_get_readable_addr()
This commit is contained in:
@@ -422,14 +422,14 @@ static void build_and_send_tcp_packet(struct inject_plugin_ctx *ctx, struct sess
|
||||
static void *on_sess_new(struct session *sess, void *plugin_ctx)
|
||||
{
|
||||
struct inject_plugin_ctx *ctx = (struct inject_plugin_ctx *)plugin_ctx;
|
||||
INJTECT_PLUGIN_LOG_INFO(ctx->logger, "handle session new: %s", session_get0_readable_addr(sess));
|
||||
INJTECT_PLUGIN_LOG_INFO(ctx->logger, "handle session new: %s", session_get_readable_addr(sess));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void on_sess_free(struct session *sess, void *sess_ctx, void *plugin_ctx)
|
||||
{
|
||||
struct inject_plugin_ctx *ctx = (struct inject_plugin_ctx *)plugin_ctx;
|
||||
INJTECT_PLUGIN_LOG_INFO(ctx->logger, "handle session free: %s", session_get0_readable_addr(sess));
|
||||
INJTECT_PLUGIN_LOG_INFO(ctx->logger, "handle session free: %s", session_get_readable_addr(sess));
|
||||
}
|
||||
|
||||
static void on_sess_msg(struct session *sess, int topic_id, const void *msg, void *sess_ctx, void *plugin_ctx)
|
||||
@@ -445,7 +445,7 @@ static void on_sess_msg(struct session *sess, int topic_id, const void *msg, voi
|
||||
struct config *config = &ctx->config;
|
||||
enum flow_type type = session_get_flow_type(sess);
|
||||
INJTECT_PLUGIN_LOG_INFO(ctx->logger, "handle session msg: %s (C2S received packets: %lu, S2C received packets: %lu)",
|
||||
session_get0_readable_addr(sess),
|
||||
session_get_readable_addr(sess),
|
||||
session_get_stat(sess, FLOW_TYPE_C2S, STAT_RAW_PACKETS_RECEIVED),
|
||||
session_get_stat(sess, FLOW_TYPE_S2C, STAT_RAW_PACKETS_RECEIVED));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user