@@ -34,37 +34,43 @@ static void print_help()
34
34
printf (" --tun-dev <number> sepcify tun device name, for example: tun10, default: a random name such as tun987\n " );
35
35
printf (" -f,--fec x:y forward error correction, send y redundant packets for every x packets\n " );
36
36
printf (" --timeout <number> how long could a packet be held in queue before doing fec, unit: ms, default: 8ms\n " );
37
- printf (" --mode <number> fec-mode,available values: 0, 1; 0 cost less bandwidth, 1 cost less latency;default: 0)\n " );
38
37
printf (" --report <number> turn on send/recv report, and set a period for reporting, unit: s\n " );
39
38
printf (" --keep-reconnect re-connect after lost connection,only for client. \n " );
40
39
41
40
42
41
printf (" advanced options:\n " );
42
+ printf (" --mode <number> fec-mode,available values: 0,1; mode 0(default) costs less bandwidth,no mtu problem.\n " );
43
+ printf (" mode 1 usually introduces less latency, but you have to care about mtu.\n " );
43
44
printf (" --mtu <number> mtu for fec. for mode 0, the program will split packet to segment smaller than mtu.\n " );
44
45
printf (" for mode 1, no packet will be split, the program just check if the mtu is exceed.\n " );
45
46
printf (" default value: 1250\n " );
46
47
printf (" -j,--jitter <number> simulated jitter. randomly delay first packet for 0~<number> ms, default value: 0.\n " );
47
48
printf (" do not use if you dont know what it means.\n " );
48
- printf (" -i,--interval <number> scatter each fec group to a interval of <number> ms, to protect burst packet loss.\n " );
49
+ printf (" -i,--interval <number> scatter each fec group to a interval of <number> ms, to defend burst packet loss.\n " );
49
50
printf (" default value: 0. do not use if you dont know what it means.\n " );
51
+ printf (" -f,--fec x1:y1,x2:y2,.. similiar to -f/--fec above,fine-grained fec parameters,may help save bandwidth.\n " );
52
+ printf (" example: \" -f 1:3,2:4,10:6,20:10\" . check repo for details\n " );
50
53
printf (" --random-drop <number> simulate packet loss, unit: 0.01%%. default value: 0\n " );
51
54
printf (" --disable-obscure <number> disable obscure, to save a bit bandwidth and cpu\n " );
52
55
printf (" --disable-checksum <number> disable checksum to save a bit bandwdith and cpu\n " );
53
- printf (" --disable-xor <number> disable xor encryption to save a bit cpu\n " );
56
+ // printf(" --disable-xor <number> disable xor\n");
57
+ printf (" --persist-tun <number> make the tun device persistent, so that it wont be deleted after exited.\n " );
58
+ printf (" --mssfix <number> do mssfix for tcp connection, use 0 to disable. default value: 1250\n " );
54
59
55
60
printf (" developer options:\n " );
56
61
printf (" --tun-mtu <number> mtu of the tun interface,most time you shouldnt change this\n " );
57
- printf (" --mssfix <number> do mssfix for tcp connection, use 0 to disable. default value: 1250 \n " );
58
- printf (" -i,--interval imin:imax similiar to -i above, but scatter randomly between imin and imax \n " );
62
+ printf (" --manual-set-tun <number> tell tinyfecvpn to not setup the tun device automatically(e.g. assign ip address), \n " );
63
+ printf (" so that you can do it manually later \n " );
59
64
printf (" --fifo <string> use a fifo(named pipe) for sending commands to the running program, so that you\n " );
60
65
printf (" can change fec encode parameters dynamically, check readme.md in repository for\n " );
61
66
printf (" supported commands.\n " );
62
67
printf (" -j ,--jitter jmin:jmax similiar to -j above, but create jitter randomly between jmin and jmax\n " );
63
68
printf (" -i,--interval imin:imax similiar to -i above, but scatter randomly between imin and imax\n " );
64
- printf (" -q,--queue-len <number> max fec queue len, only for mode 0\n " );
69
+ printf (" -q,--queue-len <number> fec queue len, only for mode 0, fec will be performed immediately after queue is full.\n " );
70
+ printf (" default value: 200. \n " );
65
71
printf (" --decode-buf <number> size of buffer of fec decoder,u nit: packet, default: 2000\n " );
66
- printf (" --fix-latency <number> try to stabilize latency, only for mode 0\n " );
67
- printf (" --delay-capacity <number> max number of delayed packets\n " );
72
+ // printf(" --fix-latency <number> try to stabilize latency, only for mode 0\n");
73
+ printf (" --delay-capacity <number> max number of delayed packets, 0 means unlimited, default: 0 \n " );
68
74
printf (" --disable-fec <number> completely disable fec, turn the program into a normal udp tunnel\n " );
69
75
printf (" --sock-buf <number> buf size for socket, >=10 and <=10240, unit: kbyte, default: 1024\n " );
70
76
printf (" log and help options:\n " );
0 commit comments