修正IP Spoofing、IP载荷替换发送业务日志功能的若干问题
This commit is contained in:
@@ -221,7 +221,6 @@ char kni_process_replace(unsigned char dir,int thread_seq,const struct streaminf
|
||||
// char ret = APP_STATE_DROPPKT | APP_STATE_DROPME;
|
||||
char ret = APP_STATE_DROPPKT | APP_STATE_GIVEME;
|
||||
|
||||
|
||||
struct kni_replace_info replace_info;
|
||||
memset(&replace_info,0,sizeof(struct kni_replace_info));
|
||||
|
||||
@@ -232,7 +231,8 @@ char kni_process_replace(unsigned char dir,int thread_seq,const struct streaminf
|
||||
}
|
||||
|
||||
kni_log_debug(RLOG_LV_FATAL,(char*)"REPLACE",a_packet,(char*)"config id:%d,original:%s,replace:%s",pmeinfo->cfg_id,replace_info.find,replace_info.replace);
|
||||
|
||||
replace_sendlog(pstream, pmeinfo, replace_info.find,replace_info.replace);
|
||||
|
||||
if(*(char*)a_packet == 0x45)
|
||||
{
|
||||
ret = kni_build_send_ipv4(dir,thread_seq,(struct ip*)a_packet,pmeinfo,&replace_info);
|
||||
|
||||
Reference in New Issue
Block a user