返回值改成kill_other
This commit is contained in:
@@ -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);
|
KNI_LOG_DEBUG(logger, "stream has dup traffic, traceid = %s", pmeinfo->stream_traceid);
|
||||||
}
|
}
|
||||||
FREE(&buff);
|
FREE(&buff);
|
||||||
return APP_STATE_DROPPKT | APP_STATE_GIVEME;
|
return APP_STATE_KILL_OTHER | APP_STATE_GIVEME;
|
||||||
|
|
||||||
error_out:
|
error_out:
|
||||||
if(buff != NULL){
|
if(buff != NULL){
|
||||||
FREE(&buff);
|
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){
|
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
|
//pmeinfo->action has only 2 value: KNI_ACTION_NONE, KNI_ACTION_INTERCEPT
|
||||||
if(pmeinfo->action == KNI_ACTION_INTERCEPT){
|
if(pmeinfo->action == KNI_ACTION_INTERCEPT){
|
||||||
next_data_intercept(pmeinfo, a_packet, &pktinfo, thread_seq);
|
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
|
//first data
|
||||||
if(stream->ptcpdetail->datalen > 0){
|
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,
|
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_DROPME;
|
return APP_STATE_KILL_OTHER | 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