From 27f0cfc91a6d85c0460d87e3e3ee05e4df02dc3c Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 27 Nov 2019 10:33:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BE=9BTLD=5Fappend=5Fstreaminfo?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E6=8E=A5=E5=8F=A3=E4=BE=9BKNI=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/tsg_tableinfo.conf | 8 ++++---- inc/tsg_send_log.h | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/tsg_tableinfo.conf b/bin/tsg_tableinfo.conf index d9ac4a1..72ef02f 100644 --- a/bin/tsg_tableinfo.conf +++ b/bin/tsg_tableinfo.conf @@ -9,14 +9,14 @@ #quickswitch quickon or quick off #id name type src_charset dst_charset do_merge cross_cache quickswitch 0 TSG_SECURITY_COMPILE compile escape -- -1 POLICY_OBJECT group UTF8 UTF8 no 0 -2 TSG_OBJ_IP_ADDR ip UTF8 UTF8 no 0 +1 GROUP_COMPILE_RELATION group UTF8 UTF8 no 0 +2 TSG_OBJ_IP_ADDR ip_plus UTF8 UTF8 no 0 3 TSG_OBJ_SUBSCRIBER_ID expr UTF8 UTF8 no 0 4 TSG_OBJ_ACCOUNT expr UTF8 UTF8 no 0 -5 TSG_OBJ_URL expr UTF8 UTF8 no 0 +5 TSG_OBJ_URL expr UTF8 UTF8/GBK no 0 6 TSG_OBJ_FQDN expr UTF8 UTF8 no 0 7 TSG_OBJ_KEYWORDS expr UTF8 UTF8 no 0 -8 TSG_OBJ_HTTP_SIGNATURE expr_plus UTF8 UTF8 no 0 +8 TSG_OBJ_HTTP_SIGNATURE expr_plus UTF8 UTF8/GBK no 0 9 TSG_FIELD_HTTP_HOST virtual TSG_OBJ_FQDN -- 10 TSG_FIELD_HTTP_URL virtual TSG_OBJ_URL -- 11 TSG_FIELD_HTTP_REQ_HDR virtual TSG_OBJ_HTTP_SIGNATURE -- diff --git a/inc/tsg_send_log.h b/inc/tsg_send_log.h index b3a4b5c..a399b43 100644 --- a/inc/tsg_send_log.h +++ b/inc/tsg_send_log.h @@ -28,6 +28,7 @@ extern tsg_log_instance_t g_tsg_log_instance; TLD_handle_t TLD_create(int thread_id); int TLD_append(TLD_handle_t handle, char *key, void *value, TLD_TYPE type); +int TLD_append_streaminfo(struct _tsg_log_instance *_instance, struct _tld_handle *_handle, struct streaminfo *a_stream); int TLD_cancel(TLD_handle_t handle); int tsg_send_log(tsg_log_instance_t instance, TLD_handle_t handle, tsg_log_t *log_msg, int thread_id);