diff --git a/main.cpp b/main.cpp index 6129537..6d349ac 100755 --- a/main.cpp +++ b/main.cpp @@ -2621,7 +2621,7 @@ void print_help() // printf("\n"); printf(" --sock-buf buf size for socket,>=10 and <=10240,unit:kbyte,default:1024\n"); printf(" --force-sock-buf bypass system limitation while setting sock-buf\n"); - printf(" --seqmode seq increase mode for faketcp:\n"); + printf(" --seq-mode seq increase mode for faketcp:\n"); printf(" 0:static header,do not increase seq and ack_seq\n"); printf(" 1:increase seq for every packet,simply ack last seq\n"); printf(" 2:increase seq randomly, about every 3 packets,simply ack last seq\n"); diff --git a/network.cpp b/network.cpp index a8b69ec..ff4e37c 100644 --- a/network.cpp +++ b/network.cpp @@ -1687,12 +1687,12 @@ int after_send_raw0(raw_info_t &raw_info) { send_info.seq=raw_info.recv_info.ack_seq; } - if(recv_info.ack_seq_counter>=3) + if(recv_info.ack_seq_counter>=3) //simulate tcp fast re-transmit { recv_info.ack_seq_counter=0; send_info.seq=raw_info.recv_info.ack_seq; } - if(larger_than_u32(raw_info.recv_info.ack_seq,send_info.seq)) //for further use,currently not useful. + if(larger_than_u32(raw_info.recv_info.ack_seq,send_info.seq)) //for further use,currently no effect. { send_info.seq=raw_info.recv_info.ack_seq; }