#include <or.h>
Data Fields | |
int | refcnt |
addr_policy_action_t | policy_type:2 |
unsigned int | is_private:1 |
unsigned int | is_canonical:1 |
maskbits_t | maskbits |
tor_addr_t | addr |
uint16_t | prt_min |
uint16_t | prt_max |
Reference count
Referenced by addr_policy_free().
What to do when the policy matches.
Referenced by cmp_single_addr_policy(), exit_policy_remove_redundancies(), policy_hash(), policy_summary_add_item(), policy_write_item(), router_parse_addr_policy(), and router_parse_addr_policy_private().
unsigned int addr_policy_t::is_private |
True iff this is the pseudo-address, "private".
Referenced by cmp_single_addr_policy(), policy_expand_private(), policy_hash(), policy_write_item(), and router_parse_addr_policy_private().
unsigned int addr_policy_t::is_canonical |
True iff this policy is the canonical copy (stored in a hash table to avoid duplication of common policies)
Referenced by addr_policy_free(), load_policy_from_option(), and policy_expand_private().
Accept/reject all addresses a such that the first maskbits bits of a match addr.
Referenced by addr_policy_covers(), addr_policy_intersects(), cmp_single_addr_policy(), exit_policy_remove_redundancies(), policy_expand_private(), policy_hash(), policy_summary_add_item(), policy_write_item(), and router_parse_addr_policy().
Base address to accept or reject.
Referenced by addr_policy_covers(), addr_policy_intersects(), cmp_single_addr_policy(), policy_expand_private(), policy_hash(), policy_summary_add_item(), policy_write_item(), router_add_exit_policy(), and router_parse_addr_policy().
uint16_t addr_policy_t::prt_min |
Lowest port number to accept/reject.
Referenced by addr_policy_covers(), addr_policy_intersects(), cmp_single_addr_policy(), exit_policy_remove_redundancies(), load_policy_from_option(), policy_hash(), policy_summary_add_item(), policy_write_item(), router_parse_addr_policy(), and router_parse_addr_policy_private().
uint16_t addr_policy_t::prt_max |
Highest port number to accept/reject.
Referenced by addr_policy_covers(), addr_policy_intersects(), cmp_single_addr_policy(), exit_policy_remove_redundancies(), load_policy_from_option(), policy_hash(), policy_summary_add_item(), policy_write_item(), router_parse_addr_policy(), and router_parse_addr_policy_private().