返回值改成kill_other

This commit is contained in:
崔一鸣
2019-11-26 18:49:54 +08:00
parent 88bb1df0f3
commit e9c696199c

View File

@@ -1002,13 +1002,13 @@ static int first_data_intercept(struct streaminfo *stream, struct pme_info *pmei
KNI_LOG_DEBUG(logger, "stream has dup traffic, traceid = %s", pmeinfo->stream_traceid);
}
FREE(&buff);
return APP_STATE_DROPPKT | APP_STATE_GIVEME;
return APP_STATE_KILL_OTHER | APP_STATE_GIVEME;
error_out:
if(buff != NULL){
FREE(&buff);
}
return APP_STATE_DROPPKT | APP_STATE_DROPME;
return APP_STATE_KILL_OTHER | APP_STATE_DROPME;
}
static int dabloom_search(struct pkt_info *pktinfo, int thread_seq){
@@ -1161,7 +1161,7 @@ static char data_opstate(struct streaminfo *stream, struct pme_info *pmeinfo, co
//pmeinfo->action has only 2 value: KNI_ACTION_NONE, KNI_ACTION_INTERCEPT
if(pmeinfo->action == KNI_ACTION_INTERCEPT){
next_data_intercept(pmeinfo, a_packet, &pktinfo, thread_seq);
return APP_STATE_DROPPKT | APP_STATE_GIVEME;
return APP_STATE_KILL_OTHER | APP_STATE_GIVEME;
}
//first data
if(stream->ptcpdetail->datalen > 0){
@@ -1204,7 +1204,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_DROPME;
return APP_STATE_KILL_OTHER | APP_STATE_DROPME;
//stream has no data.
default:
return APP_STATE_FAWPKT | APP_STATE_DROPME;