diff options
| author | yangwei <[email protected]> | 2024-08-09 12:00:03 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-08-09 12:00:03 +0800 |
| commit | ea64461bcc79a6735c16e0299907372d06eb1ddc (patch) | |
| tree | 23e46a8f6c5e90fde7c8c1b3a80e78b845353560 | |
| parent | 70c4179f3357653215dd9bc34a4b44ad314bcaa4 (diff) | |
✨ feat(tcp fast open process sequence): from tcpall->tcp to tcp->tcpallv4.3.63
| -rw-r--r-- | src/dealpkt/deal_tcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dealpkt/deal_tcp.c b/src/dealpkt/deal_tcp.c index 1d6f3ec..e636d30 100644 --- a/src/dealpkt/deal_tcp.c +++ b/src/dealpkt/deal_tcp.c @@ -2943,10 +2943,12 @@ static int deal_tcp_stream(struct streamindex *pindex, const void *this_iphdr, s 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); - if((PASS == ret) && (tcplen > 0)){ // for TFO + if(tcplen > 0){ // for TFO ret = deal_tcp_tfo(pstream, this_iphdr, this_tcphdr, tcplen, raw_pkt); } + if(ret == PASS){ //TFO, call TCP->TCPALL + ret=tcp_processallpkt(pstream,this_iphdr,this_tcphdr,tcplen,raw_pkt); + } } } return ret; |
