tor  0.4.2.0-alpha-dev
microdesc_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 MICRODESC_ST_H
8 #define MICRODESC_ST_H
9 
12 struct nodefamily_t;
13 struct short_policy_t;
14 
20 struct microdesc_t {
22  HT_ENTRY(microdesc_t) node;
23 
24  /* Cache information */
25 
29  time_t last_listed;
31  saved_location_bitfield_t saved_location : 3;
33  unsigned int no_save : 1;
35  unsigned int held_in_map : 1;
37  unsigned int policy_is_reject_star : 1;
39  unsigned int held_by_nodes;
40 
43  off_t off;
44 
45  /* The string containing the microdesc. */
46 
51  char *body;
53  size_t bodylen;
56 
57  /* Fields in the microdescriptor. */
58 
63  char *onion_pkey;
66 
74  uint16_t ipv6_orport;
81 };
82 
83 #endif /* !defined(MICRODESC_ST_H) */
struct short_policy_t * exit_policy
Definition: microdesc_st.h:78
uint16_t ipv6_orport
Definition: microdesc_st.h:74
size_t onion_pkey_len
Definition: microdesc_st.h:65
size_t bodylen
Definition: microdesc_st.h:53
time_t last_listed
Definition: microdesc_st.h:29
#define DIGEST256_LEN
Definition: digest_sizes.h:23
unsigned int held_by_nodes
Definition: microdesc_st.h:39
HT_ENTRY(microdesc_t) node
struct ed25519_public_key_t * ed25519_identity_pkey
Definition: microdesc_st.h:70
char * body
Definition: microdesc_st.h:51
unsigned int held_in_map
Definition: microdesc_st.h:35
tor_addr_t ipv6_addr
Definition: microdesc_st.h:72
char * onion_pkey
Definition: microdesc_st.h:63
struct curve25519_public_key_t * onion_curve25519_pkey
Definition: microdesc_st.h:68
struct short_policy_t * ipv6_exit_policy
Definition: microdesc_st.h:80
char digest[DIGEST256_LEN]
Definition: microdesc_st.h:55
unsigned int no_save
Definition: microdesc_st.h:33
struct nodefamily_t * family
Definition: microdesc_st.h:76
saved_location_bitfield_t saved_location
Definition: microdesc_st.h:31
unsigned int policy_is_reject_star
Definition: microdesc_st.h:37