diff options
| author | yangwei <[email protected]> | 2024-03-27 10:00:33 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-03-27 10:00:33 +0800 |
| commit | 0b0a637184a09440ef3b3efabae95bbef805d5d1 (patch) | |
| tree | fc451c50b8f14abe58983c52501c4aaa6896f8bd | |
| parent | 4e46080fd9f2119c9f33b2f5019e57549da22f93 (diff) | |
🐞 fix(MESA_kill_tcp_remedy): 修复平台触发rst补救时,获取原始包逻辑错误的bug
影响范围:可能造成镜像模式下,仅有单侧流量时,触发rst补救向对侧发送rst包失败
| -rw-r--r-- | src/dealpkt/deal_tcp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dealpkt/deal_tcp.c b/src/dealpkt/deal_tcp.c index f4b4964..766636a 100644 --- a/src/dealpkt/deal_tcp.c +++ b/src/dealpkt/deal_tcp.c @@ -2933,7 +2933,9 @@ static int deal_tcp_stream(struct streamindex *pindex, const void *this_iphdr, s if((pdetail_pr->auto_remedy_flag != 0) && (tcplen > 0)){ /* ��ֹflood����, ֻ�д����ݵİ��ŷ�RST */ sapp_runtime_log(RLOG_LV_DEBUG, "TCP stream: %s, kill_tcp remedy, curdir:%d, send RST pkt.", printaddr(&pstream->addr, pstream->threadnum), pstream->curdir); + pstream_pr->plugin_process_context=1; MESA_kill_tcp_remedy(pstream, raw_pkt); + pstream_pr->plugin_process_context=0; } #if 0 /* MSO_TCPALL_VALID_AFTER_KILL option is obsoleted! */ |
