#include <cr_rule.h>

Data Fields | |
| struct route_rule_p_list * | backed_up |
| struct route_rule_p_list * | backup |
| str | comment |
| int | dice_to |
| int | hash_index |
| str | host |
| str | local_prefix |
| str | local_suffix |
| struct route_rule * | next |
| double | orig_prob |
| str | prefix |
| double | prob |
| int | status |
| int | strip |
Definition at line 44 of file cr_rule.h.
struct route_rule_p_list* backed_up [read] |
indicates if the rule is already backup route for another
Definition at line 55 of file cr_rule.h.
Referenced by add_backup_rule(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), find_auto_backup(), fixup_rule_backup(), remove_backed_up(), save_route_data_recursor(), and update_route_data_recursor().
struct route_rule_p_list* backup [read] |
if not NULL, it points to a route rule which shall be used instead (only used if status is 0)
Definition at line 56 of file cr_rule.h.
Referenced by add_backup_rule(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), fixup_rule_backup(), get_rule_by_hash(), remove_backed_up(), rewrite_on_rule(), save_route_data_recursor(), and update_route_data_recursor().
A comment for the route rule
Definition at line 52 of file cr_rule.h.
Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), and save_route_data_recursor().
| int dice_to |
prob * DICE_MAX
Definition at line 45 of file cr_rule.h.
Referenced by rewrite_on_rule(), and rule_fixup_recursor().
| int hash_index |
The hash index of the route rule, only useful when using prime number hashing
Definition at line 57 of file cr_rule.h.
Referenced by add_backup_rule(), add_route_rule(), find_auto_backup(), find_rule_by_hash(), get_rule_by_hash(), remove_backed_up(), rule_fixup_recursor(), and save_route_data_recursor().
The new target host for the request
Definition at line 48 of file cr_rule.h.
Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), find_rule_by_host(), rule_fixup_recursor(), save_route_data_recursor(), and update_route_data_recursor().
the pefix to be attached to the new destination
Definition at line 50 of file cr_rule.h.
Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), and save_route_data_recursor().
the suffix to be appended to the localpart of the new destination
Definition at line 51 of file cr_rule.h.
Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), and save_route_data_recursor().
struct route_rule* next [read] |
A pointer to the next route rule
Definition at line 58 of file cr_rule.h.
Referenced by add_route_rule(), destroy_route_flags(), dump_tree_recursor(), find_auto_backup(), find_rule_by_hash(), find_rule_by_host(), rewrite_on_rule(), rule_fixup_recursor(), save_route_data_recursor(), and update_route_data_recursor().
| double orig_prob |
The original probability for that rule, only useful when using crc32 hashing
Definition at line 47 of file cr_rule.h.
Referenced by add_route_rule(), and save_route_data_recursor().
The prefix for which the route is valid
Definition at line 53 of file cr_rule.h.
Referenced by add_route_rule(), destroy_route_rule(), save_route_data_recursor(), and update_route_data_recursor().
| double prob |
The probability for that rule, only useful when using crc32 hashing
Definition at line 46 of file cr_rule.h.
Referenced by add_route_rule(), dump_tree_recursor(), rewrite_on_rule(), rule_fixup_recursor(), and update_route_data_recursor().
| int status |
The status of the route rule, only useful when using prime number hashing
Definition at line 54 of file cr_rule.h.
Referenced by add_backup_rule(), add_route_rule(), dump_tree_recursor(), find_auto_backup(), fixup_rule_backup(), get_rule_by_hash(), rewrite_on_rule(), save_route_data_recursor(), and update_route_data_recursor().
| int strip |
the number of digits to be stripped off from uri befor prepending prefix
Definition at line 49 of file cr_rule.h.
Referenced by actually_rewrite(), add_route_rule(), dump_tree_recursor(), and save_route_data_recursor().
1.5.6