增加TCP Passthrough功能实现,调通明文转发流程。
This commit is contained in:
@@ -6,8 +6,9 @@
|
||||
#pragma once
|
||||
#include <MESA/MESA_handle_logger.h>
|
||||
|
||||
#define TFE_STRING_MAX 2048
|
||||
#define TFE_SYMBOL_MAX 64
|
||||
#define TFE_STRING_MAX 2048
|
||||
#define TFE_SYMBOL_MAX 64
|
||||
#define TFE_THREAD_MAX 128
|
||||
|
||||
#ifndef TFE_CONFIG_BACKLOG_DEFAULT
|
||||
#define TFE_CONFIG_BACKLOG_DEFAULT 20
|
||||
@@ -26,13 +27,22 @@
|
||||
#define unlikely(expr) __builtin_expect((expr), 0)
|
||||
|
||||
#define TFE_LOG_ERROR(handler, fmt, ...) \
|
||||
do { MESA_handle_runtime_log(handler, RLOG_LV_FATAL, NULL, fmt, ##__VA_ARGS__); } while(0) \
|
||||
do { fprintf(stderr, fmt "\n" , ##__VA_ARGS__); \
|
||||
MESA_handle_runtime_log(handler, RLOG_LV_FATAL, "tfe", fmt, ##__VA_ARGS__); } while(0)
|
||||
|
||||
#define TFE_LOG_INFO(handler, fmt, ...) \
|
||||
do { MESA_handle_runtime_log(handler, RLOG_LV_INFO, NULL, fmt, ##__VA_ARGS__); } while(0) \
|
||||
do { fprintf(stderr, fmt "\n", ##__VA_ARGS__); \
|
||||
MESA_handle_runtime_log(handler, RLOG_LV_INFO, "tfe", fmt, ##__VA_ARGS__); } while(0) \
|
||||
|
||||
#define TFE_LOG_DEBUG(handler, fmt, ...) \
|
||||
do { MESA_handle_runtime_log(handler, RLOG_LV_DEBUG, NULL, fmt, ##__VA_ARGS__); } while(0) \
|
||||
do { MESA_handle_runtime_log(handler, RLOG_LV_DEBUG, "tfe", fmt, ##__VA_ARGS__); } while(0) \
|
||||
|
||||
#define TFE_STREAM_LOG_DEBUG(stream, fmt, ...)
|
||||
#define TFE_STREAM_LOG_INFO(stream, fmt, ...)
|
||||
#define TFE_STREAM_LOG_ERROR(stream, fmt, ...)
|
||||
|
||||
#define TFE_STREAM_TRACE_TAG_INFO(stream, tag, fmt, ...)
|
||||
#define TFE_STREAM_TRACE_TAG_VERBOSE(stream, tag, fmt, ...)
|
||||
|
||||
#ifndef offsetof
|
||||
/** Return the offset of a field in a structure. */
|
||||
|
||||
Reference in New Issue
Block a user