addr_policy_t Struct Reference

#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


Detailed Description

A reference-counted address policy rule.

Field Documentation

Reference count

Referenced by addr_policy_free().

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().

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().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:05 2010 for tor by  doxygen 1.5.6