修改拦截失败的返回值
This commit is contained in:
@@ -1011,7 +1011,7 @@ error_out:
|
|||||||
if(buff != NULL){
|
if(buff != NULL){
|
||||||
FREE(&buff);
|
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){
|
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){
|
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){
|
switch(pmeinfo->action){
|
||||||
case KNI_ACTION_INTERCEPT:
|
case KNI_ACTION_INTERCEPT:
|
||||||
TLD_append_streaminfo(g_tsg_log_instance, pmeinfo->tld_handle, (struct streaminfo*)pmeinfo->stream);
|
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,
|
MESA_htable_search(g_kni_handle->traceid2pme_htable, (const unsigned char*)pmeinfo->stream_traceid,
|
||||||
strnlen(pmeinfo->stream_traceid, sizeof(pmeinfo->stream_traceid)));
|
strnlen(pmeinfo->stream_traceid, sizeof(pmeinfo->stream_traceid)));
|
||||||
tuple2stream_htable_del(stream, thread_seq);
|
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.
|
//stream has no data.
|
||||||
default:
|
default:
|
||||||
return APP_STATE_FAWPKT | APP_STATE_DROPME;
|
return APP_STATE_FAWPKT | APP_STATE_DROPME;
|
||||||
|
|||||||
Reference in New Issue
Block a user