tor  0.4.1.0-alpha-dev
routerstatus_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 ROUTERSTATUS_ST_H
8 #define ROUTERSTATUS_ST_H
9 
10 #include "feature/dirclient/download_status_st.h"
11 
15  time_t published_on;
23  uint32_t addr;
24  uint16_t or_port;
25  uint16_t dir_port;
27  uint16_t ipv6_orport;
28  unsigned int is_authority:1;
29  unsigned int is_exit:1;
30  unsigned int is_stable:1;
31  unsigned int is_fast:1;
36  unsigned int is_flagged_running:1;
37  unsigned int is_named:1;
38  unsigned int is_unnamed:1;
40  unsigned int is_valid:1;
41  unsigned int is_possible_guard:1;
43  unsigned int is_bad_exit:1;
45  unsigned int is_hs_dir:1;
47  unsigned int is_v2_dir:1;
50  unsigned int is_staledesc:1;
53  unsigned int has_bandwidth:1;
54  unsigned int has_exitsummary:1;
55  unsigned int bw_is_unmeasured:1;
60 
61  uint32_t bandwidth_kb;
65  unsigned int has_guardfraction:1;
68 
69  char *exitsummary;
72  /* ---- The fields below aren't derived from the networkstatus; they
73  * hold local information only. */
74 
75  time_t last_dir_503_at;
77  download_status_t dl_status;
78 
79 };
80 
81 #endif
82 
unsigned int is_fast
unsigned int is_valid
unsigned int is_hs_dir
protover_summary_flags_t pv
char identity_digest[DIGEST_LEN]
#define MAX_NICKNAME_LEN
Definition: or.h:113
uint32_t bandwidth_kb
time_t last_dir_503_at
unsigned int has_guardfraction
unsigned int is_authority
#define DIGEST256_LEN
Definition: digest_sizes.h:23
unsigned int is_named
unsigned int is_unnamed
unsigned int is_staledesc
#define DIGEST_LEN
Definition: digest_sizes.h:20
tor_addr_t ipv6_addr
char nickname[MAX_NICKNAME_LEN+1]
unsigned int is_exit
unsigned int has_bandwidth
char descriptor_digest[DIGEST256_LEN]
unsigned int is_possible_guard
unsigned int has_exitsummary
unsigned int is_stable
uint16_t ipv6_orport
unsigned int bw_is_unmeasured
unsigned int is_flagged_running
uint32_t guardfraction_percentage
unsigned int is_bad_exit