From 04ed5150e60f2a33125629f0dd9d2ee41d55aeb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E4=B8=80=E9=B8=A3?= Date: Wed, 27 Nov 2019 18:00:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8B=A6=E6=88=AA=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E8=BF=94=E5=9B=9E=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/kni_entry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index bd7a061..5181d0c 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -1011,7 +1011,7 @@ error_out: if(buff != NULL){ FREE(&buff); } - return APP_STATE_DROPPKT | APP_STATE_KILL_OTHER | APP_STATE_DROPME; + return APP_STATE_FAWPKT | APP_STATE_KILL_OTHER | APP_STATE_DROPME; } static int dabloom_search(struct pkt_info *pktinfo, int thread_seq){ @@ -1202,7 +1202,7 @@ static char data_opstate(struct streaminfo *stream, struct pme_info *pmeinfo, co static char close_opstate(const struct streaminfo *stream, struct pme_info *pmeinfo, int thread_seq){ - //close: a_packet = null, do not sendto tfe + //close: because of timeout, return value has no meaning switch(pmeinfo->action){ case KNI_ACTION_INTERCEPT: TLD_append_streaminfo(g_tsg_log_instance, pmeinfo->tld_handle, (struct streaminfo*)pmeinfo->stream); @@ -1210,7 +1210,7 @@ static char close_opstate(const struct streaminfo *stream, struct pme_info *pmei MESA_htable_search(g_kni_handle->traceid2pme_htable, (const unsigned char*)pmeinfo->stream_traceid, strnlen(pmeinfo->stream_traceid, sizeof(pmeinfo->stream_traceid))); tuple2stream_htable_del(stream, thread_seq); - return APP_STATE_DROPPKT | APP_STATE_KILL_OTHER | APP_STATE_DROPME; + return APP_STATE_FAWPKT | APP_STATE_DROPME; //stream has no data. default: return APP_STATE_FAWPKT | APP_STATE_DROPME;