fixed sed ack_seq of faketcp mode

This commit is contained in:
wangyu
2017-07-31 19:50:05 +08:00
committed by wangyu
parent 66e6e7946a
commit b0c8448fdf
2 changed files with 36 additions and 2 deletions

View File

@@ -1061,6 +1061,11 @@ int recv_raw_tcp(raw_info_t &raw_info,char * &payload,int &payloadlen)
payloadlen = ip_payloadlen-tcphdrlen;
payload=tcp_begin+tcphdrlen;
if (recv_info.syn == 0 && recv_info.ack == 1&& payloadlen != 0) //only modify send_info when the packet is not part of handshake
{
send_info.ack_seq=recv_info.seq;
}
return 0;
}
/*