tor  0.4.2.0-alpha-dev
networkstatus_st.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef NETWORKSTATUS_ST_H
8 #define NETWORKSTATUS_ST_H
9 
10 #include "feature/nodelist/networkstatus_sr_info_st.h"
11 
13 typedef enum networkstatus_type_t {
14  NS_TYPE_VOTE,
15  NS_TYPE_CONSENSUS,
16  NS_TYPE_OPINION,
17 } networkstatus_type_t;
18 
22  networkstatus_type_t type;
24  unsigned int has_measured_bws : 1;
27  time_t published;
28  time_t valid_after;
29  time_t fresh_until;
31  time_t valid_until;
38 
41 
48 
52  char *server_versions;
53 
59  char *recommended_client_protocols;
60  char *required_relay_protocols;
61  char *required_client_protocols;
62 
66 
70 
74 
79 
87 
92 
95  digestmap_t *desc_digest_map;
96 
99 
102 
105 };
106 
107 #endif /* !defined(NETWORKSTATUS_ST_H) */
networkstatus_type_t type
networkstatus_sr_info_t sr_info
uint8_t bw_file_digest256[DIGEST256_LEN]
smartlist_t * net_params
uint8_t digest_sha3_as_signed[DIGEST256_LEN]
common_digests_t digests
smartlist_t * weight_params
#define DIGEST256_LEN
Definition: digest_sizes.h:23
unsigned int has_measured_bws
smartlist_t * supported_methods
smartlist_t * known_flags
smartlist_t * voters
smartlist_t * routerstatus_list
consensus_flavor_t flavor
consensus_flavor_t
Definition: or.h:867
smartlist_t * package_lines
char * recommended_relay_protocols
digestmap_t * desc_digest_map
smartlist_t * bw_file_headers
struct authority_cert_t * cert