New package redir
[openwrt/svn-archive/archive.git] / net / redir / patches / 01_fix_max_bandwidth_docs.patch
1 diff -Nur a/redir.c b/redir.c
2 --- a/redir.c 1999-12-26 15:50:06.000000000 -0500
3 +++ b/redir.c 2005-10-22 21:21:56.849499952 -0400
4 @@ -233,7 +233,7 @@
5 #ifndef NO_SHAPER
6 /* options for bandwidth */
7 fprintf(stderr, "\t\t--bufsize=<octets>\tsize of the buffer\n");
8 - fprintf(stderr, "\t\t--maxbandwidth=<bit-per-sec>\tlimit the bandwidth\n");
9 + fprintf(stderr, "\t\t--max_bandwidth=<bit-per-sec>\tlimit the bandwidth\n");
10 fprintf(stderr, "\t\t--random_wait=<millisec>\twait before each packet\n");
11 fprintf(stderr, "\t\t--wait_in_out=<flag>\t1 wait for in, 2 out, 3 in&out\n");
12 /* end options for bandwidth */
13 diff -urNad redir-2.2.1~/redir.man redir-2.2.1/redir.man
14 --- redir-2.2.1~/redir.man 1999-12-26 15:52:24.000000000 -0500
15 +++ redir-2.2.1/redir.man 2005-10-22 21:22:28.882630176 -0400
16 @@ -18,7 +18,7 @@
17 .I --lport=port
18 .I --cport=port
19 .RB [ \--bufsize=n ]
20 -.RB [ \--maxbandwidth=n ]
21 +.RB [ \--max_bandwidth=n ]
22 .RB [ \--random_wait=n ]
23 .RB [ \--wait_in_out=n ]
24 .ll -8
25 @@ -35,7 +35,7 @@
26 .RB [ \--connect=host:port ]
27 .I --cport=port
28 .RB [ \--bufsize=n ]
29 -.RB [ \--maxbandwidth=n ]
30 +.RB [ \--max_bandwidth=n ]
31 .RB [ \--random_wait=n ]
32 .RB [ \--wait_in_out=n ]
33 .ll -8
34 @@ -102,9 +102,9 @@
35 .TP
36 .B \--bufsize n
37 Set the bufsize (defaut 4096) in bytes. Can be used combined with
38 ---maxbandwidth or --random_wait to simulate a slow connection.
39 +--max_bandwidth or --random_wait to simulate a slow connection.
40 .TP
41 -.B \--maxbandwidth n
42 +.B \--max_bandwidth n
43 Reduce the bandwidth to be no more than n bits/sec. The algorithme is
44 basic, the goal is to simulate a slow connection, so there is no pic
45 acceptance.
46 @@ -115,7 +115,7 @@
47 than the bufsize (see also --bufsize).
48 .TP
49 .B \--wait_in_out n
50 -Apply --maxbandwidth and --random_wait for input if n=1, output if n=2 and
51 +Apply --max_bandwidth and --random_wait for input if n=1, output if n=2 and
52 both if n=3.
53 .SH "SEE ALSO"
54 inetd(1)