fix typo in help page

This commit is contained in:
wangyu- 2017-09-06 19:24:39 -05:00
parent 206dd1565c
commit 9a959c2dcf
2 changed files with 3 additions and 3 deletions

@ -2621,7 +2621,7 @@ void print_help()
// printf("\n");
printf(" --sock-buf <number> 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 <number> seq increase mode for faketcp:\n");
printf(" --seq-mode <number> 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");

@ -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;
}