fixed help page

This commit is contained in:
wangyu- 2017-09-11 10:26:56 -05:00
parent 0cafbff271
commit aa42887a67

View File

@ -49,6 +49,7 @@ u64_t packet_send_count=0;
u64_t dup_packet_send_count=0; u64_t dup_packet_send_count=0;
u64_t packet_recv_count=0; u64_t packet_recv_count=0;
u64_t dup_packet_recv_count=0; u64_t dup_packet_recv_count=0;
int max_pending_packet=0;
int random_between(u32_t a,u32_t b) int random_between(u32_t a,u32_t b)
{ {
@ -61,7 +62,7 @@ int random_between(u32_t a,u32_t b)
else return a+get_true_random_number()%(b+1-a); else return a+get_true_random_number()%(b+1-a);
} }
int max_pending_packet=0;
int VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV; int VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV;
struct anti_replay_t struct anti_replay_t
@ -950,7 +951,9 @@ void print_help()
printf(" -t tmin:tmax simliar to -t above,but delay randomly between tmin and tmax\n"); printf(" -t tmin:tmax simliar to -t above,but delay randomly between tmin and tmax\n");
printf(" -j jmin:jmax simliar to -j above,but create jitter randomly between jmin and jmax\n"); printf(" -j jmin:jmax simliar to -j above,but create jitter randomly between jmin and jmax\n");
printf(" --random-drop <number> simulate packet loss ,unit 0.01%%\n"); printf(" --random-drop <number> simulate packet loss ,unit 0.01%%\n");
printf(" -m <number> max pending packets,to prevent the program from eating up all your memory.\n"); printf(" -m <number> max pending packets,to prevent the program from eating up all your memory,\n");
printf(" default value:0(disabled).\n");
printf(" --disable-filter disable duplicate packet filter.\n");
printf("other options:\n"); printf("other options:\n");
printf(" --log-level <number> 0:never 1:fatal 2:error 3:warn \n"); printf(" --log-level <number> 0:never 1:fatal 2:error 3:warn \n");
printf(" 4:info (default) 5:debug 6:trace\n"); printf(" 4:info (default) 5:debug 6:trace\n");