diff options
| author | liuxueli <l> | 2022-11-25 13:51:21 +0800 |
|---|---|---|
| committer | liuxueli <l> | 2022-11-25 13:51:21 +0800 |
| commit | 040dca29181b499046c8a7e12e61eb0afc21da3c (patch) | |
| tree | 0ff9a6e6863695793e46e9e0aa812b9ea6305cb6 | |
| parent | 8c77537c819ac4d99fbe92d546047251cc891b7e (diff) | |
修正由于CPU资源紧张导致bypass链接的四元组日志级别,可用于验证流量是否接入系统
| -rw-r--r-- | src/dealpkt/deal_tcp.c | 4 | ||||
| -rw-r--r-- | src/dealpkt/deal_udp.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dealpkt/deal_tcp.c b/src/dealpkt/deal_tcp.c index ea606ac..bdb45c0 100644 --- a/src/dealpkt/deal_tcp.c +++ b/src/dealpkt/deal_tcp.c @@ -2753,7 +2753,7 @@ static int deal_tcp_stream(struct streamindex *pindex, const void *this_iphdr, s local_sys_stat->count[SAPP_STAT_TCP_BYPASS_PKTS]++; local_sys_stat->length[SAPP_STAT_TCP_BYPASS_BYTES]+= tcplen; cycle_pkt_dump_by_classify(pstream->threadnum, raw_pkt, PKT_CLASSIFY_BYPASS); - sapp_runtime_log(RLOG_LV_DEBUG, "TCP stream:%s under ddos bypass!", printaddr(&pstream->addr, pstream->threadnum)); + sapp_runtime_log(RLOG_LV_INFO, "TCP stream:%s under ddos bypass!", printaddr(&pstream->addr, pstream->threadnum)); ret = PASS; }else{ ret=tcp_processallpkt(pstream,this_iphdr,this_tcphdr,tcplen,raw_pkt); @@ -2803,7 +2803,7 @@ static int deal_tcp_stream(struct streamindex *pindex, const void *this_iphdr, s local_sys_stat->count[SAPP_STAT_TCP_BYPASS_PKTS]++; local_sys_stat->length[SAPP_STAT_TCP_BYPASS_BYTES]+= tcplen; cycle_pkt_dump_by_classify(pstream->threadnum, raw_pkt, PKT_CLASSIFY_BYPASS); - sapp_runtime_log(RLOG_LV_DEBUG, "TCP stream:%s under ddos bypass!", printaddr(&pstream->addr, pstream->threadnum)); + sapp_runtime_log(RLOG_LV_INFO, "TCP stream:%s under ddos bypass!", printaddr(&pstream->addr, pstream->threadnum)); ret = PASS; }else { diff --git a/src/dealpkt/deal_udp.c b/src/dealpkt/deal_udp.c index 525245f..ac2aa5e 100644 --- a/src/dealpkt/deal_udp.c +++ b/src/dealpkt/deal_udp.c @@ -198,7 +198,7 @@ static struct streamindex *udp_add_new_stream(struct streamindex *pindex, /* bypass״̬�������κβ��, ������project, bridge,��ʼ��half_stream�Ȳ��������Ժ����� */ sapp_global_val->mthread_volatile[threadnum]->sys_stat.count[SAPP_STAT_UDP_BYPASS_STREAM]++; cycle_pkt_dump_by_classify(threadnum, raw_pkt, PKT_CLASSIFY_BYPASS); - sapp_runtime_log(RLOG_LV_DEBUG, "UDP stream:%s under ddos bypass!", printaddr(&pstream_udp->addr, threadnum)); + sapp_runtime_log(RLOG_LV_INFO, "UDP stream:%s under ddos bypass!", printaddr(&pstream_udp->addr, threadnum)); return pindex_udp; } |
