tor  0.4.2.0-alpha-dev
dir_server_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 DIR_SERVER_ST_H
8 #define DIR_SERVER_ST_H
9 
10 #include "lib/cc/torint.h"
11 #include "core/or/or.h"
12 #include "feature/nodelist/routerstatus_st.h"
13 
16 struct dir_server_t {
17  char *description;
18  char *nickname;
19  char *address;
20  /* XX/teor - why do we duplicate the address and port fields here and in
21  * fake_status? Surely we could just use fake_status (#17867). */
23  uint32_t addr;
24  uint16_t dir_port;
25  uint16_t or_port;
26  uint16_t ipv6_orport;
27  double weight;
32  unsigned int is_running:1;
33  unsigned int is_authority:1;
38  unsigned int has_accepted_serverdesc:1;
39 
42 
43  time_t addr_current_at;
52 };
53 
54 #endif /* !defined(DIR_SERVER_ST_H) */
time_t addr_current_at
Definition: dir_server_st.h:43
uint16_t dir_port
Definition: dir_server_st.h:24
char digest[DIGEST_LEN]
Definition: dir_server_st.h:28
char * address
Definition: dir_server_st.h:19
dirinfo_type_t
Definition: or.h:887
Integer definitions used throughout Tor.
unsigned int is_running
Definition: dir_server_st.h:32
uint16_t ipv6_orport
Definition: dir_server_st.h:26
#define DIGEST_LEN
Definition: digest_sizes.h:20
Master header file for Tor-specific functionality.
routerstatus_t fake_status
Definition: dir_server_st.h:46
dirinfo_type_t type
Definition: dir_server_st.h:41
uint16_t or_port
Definition: dir_server_st.h:25
tor_addr_t ipv6_addr
Definition: dir_server_st.h:22
uint32_t addr
Definition: dir_server_st.h:23
char v3_identity_digest[DIGEST_LEN]
Definition: dir_server_st.h:29
unsigned int is_authority
Definition: dir_server_st.h:33
unsigned int has_accepted_serverdesc
Definition: dir_server_st.h:38