Second stage of processing: Try to map the end of the user part of the URI to a given suffix.
More...
#include <cr_rule.h>
Data Fields
-
struct route_rule_p_list * backed_up
- indicates if the rule is already backup route for another
-
struct route_rule_p_list * backup
- if not NULL, it points to a route rule which shall be used instead (only used if status is 0)
-
str comment
- A comment for the route rule.
-
int dice_to
- prob * DICE_MAX
-
int hash_index
- The hash index of the route rule, only useful when using prime number hashing.
-
str host
- The new target host for the request.
-
str local_prefix
- the pefix to be attached to the new destination
-
str local_suffix
- the suffix to be appended to the localpart of the new destination
-
struct route_rule * next
- A pointer to the next route rule.
-
double orig_prob
- The original probability for that rule, only useful when using crc32 hashing.
-
str prefix
- The prefix for which the route is valid.
-
double prob
- The probability for that rule, only useful when using crc32 hashing.
-
int status
- The status of the route rule, only useful when using prime number hashing.
-
int strip
- the number of digits to be stripped off from uri befor prepending prefix
Detailed Description
Then rewrite with given parameters.
Definition at line 44 of file cr_rule.h.
The documentation for this struct was generated from the following file: