|
@@ -230,7 +230,14 @@ Chapter 1. Admin Guide
|
|
expression (see 'man pcresyntax' for syntax), an empty string, or NULL.
|
|
expression (see 'man pcresyntax' for syntax), an empty string, or NULL.
|
|
An empty or NULL from pattern or prefix matches anything. Smaller
|
|
An empty or NULL from pattern or prefix matches anything. Smaller
|
|
priority value means higher priority (highest priority value being 0
|
|
priority value means higher priority (highest priority value being 0
|
|
- and lowest being 255). Weight is an integer value from 1 to 254.
|
|
|
|
|
|
+ and lowest being 255).
|
|
|
|
+
|
|
|
|
+ Weight is an integer value from 1 to 254. Weight implementation is
|
|
|
|
+ fast, but unfair favoring larger weight values at the expense smaller
|
|
|
|
+ ones. For example, if two gateways have weights 1 and 2, probability
|
|
|
|
+ that the gateway with weight 1 is tried first is 1/4, not 1/3. A script
|
|
|
|
+ is provided in lcr/utils directory that can be used to check the
|
|
|
|
+ probabilities resulting from a given set of weight values.
|
|
|
|
|
|
The function next_gw() can then be used to select one gateway at a time
|
|
The function next_gw() can then be used to select one gateway at a time
|
|
for forwarding. Upon each call, unless "dont_strip_of_tag" flag is set,
|
|
for forwarding. Upon each call, unless "dont_strip_of_tag" flag is set,
|