Tor  0.4.6.0-alpha-dev
Data Fields
short_policy_t Struct Reference

#include <policies.h>

Data Fields

unsigned int is_accept: 1
 
unsigned int n_entries: 31
 
short_policy_entry_t entries [FLEXIBLE_ARRAY_MEMBER]
 

Detailed Description

A short_poliy_t is the parsed version of a policy summary.

Definition at line 57 of file policies.h.

Field Documentation

◆ entries

short_policy_entry_t entries[FLEXIBLE_ARRAY_MEMBER]

An array of 0 or more short_policy_entry_t values, each describing a range of ports that this policy accepts or rejects (depending on the value of is_accept).

Definition at line 67 of file policies.h.

Referenced by short_policy_is_reject_star(), and write_short_policy().

◆ is_accept

unsigned int is_accept

True if the members of 'entries' are port ranges to accept; false if they are port ranges to reject

Definition at line 60 of file policies.h.

Referenced by short_policy_is_reject_star(), and write_short_policy().

◆ n_entries

unsigned int n_entries

The actual number of values in 'entries'.

Definition at line 62 of file policies.h.

Referenced by short_policy_is_reject_star(), and write_short_policy().


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