]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Extract routerinfo_t into its own header.
authorNick Mathewson <nickm@torproject.org>
Fri, 15 Jun 2018 18:49:15 +0000 (14:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Fri, 15 Jun 2018 18:49:46 +0000 (14:49 -0400)
I was expecting this to be much worse.

39 files changed:
src/or/bridges.c
src/or/channeltls.c
src/or/circuitbuild.c
src/or/connection.c
src/or/connection_or.c
src/or/control.c
src/or/dirauth/dirvote.c
src/or/directory.c
src/or/dirserv.c
src/or/include.am
src/or/main.c
src/or/networkstatus.c
src/or/nodelist.c
src/or/or.h
src/or/policies.c
src/or/relay.c
src/or/router.c
src/or/routerinfo_st.h [new file with mode: 0644]
src/or/routerlist.c
src/or/routerparse.c
src/or/routerset.c
src/or/status.c
src/test/test_address_set.c
src/test/test_config.c
src/test/test_connection.c
src/test/test_dir.c
src/test/test_dir_common.c
src/test/test_dir_handle_get.c
src/test/test_entrynodes.c
src/test/test_hs.c
src/test/test_hs_common.c
src/test/test_hs_service.c
src/test/test_microdesc.c
src/test/test_nodelist.c
src/test/test_policy.c
src/test/test_rendcache.c
src/test/test_router.c
src/test/test_routerset.c
src/test/test_status.c

index 3108e1495140c8962824c76c6e66075ab965fec2..013c45cd53b489cf88d15b3bf593d2f149afe1ee 100644 (file)
@@ -28,6 +28,7 @@
 #include "transports.h"
 
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 /** Information about a configured bridge. Currently this just matches the
index 4d56778210eef7231a4804e1e4d7a4c44ed4435e..dd0c1628c432f65781f35b32fbac16034a30c251 100644 (file)
@@ -63,6 +63,7 @@
 #include "or_connection_st.h"
 #include "or_handshake_certs_st.h"
 #include "or_handshake_state_st.h"
+#include "routerinfo_st.h"
 
 /** How many CELL_PADDING cells have we received, ever? */
 uint64_t stats_n_padding_cells_processed = 0;
index b871bd10c7d023f90e0cefeb12d9e4ba28fbe54b..103dd6eb9b4148a789399ecf8cdf0a4ca95d1329 100644 (file)
@@ -71,6 +71,7 @@
 #include "or_circuit_st.h"
 #include "origin_circuit_st.h"
 #include "microdesc_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 static channel_t * channel_connect_for_circuit(const tor_addr_t *addr,
index 283f09652847c5c810fba18e15f357d50cc8f69a..6e133f8d4d99aaa89f9c65fe30ccec21f9d379de 100644 (file)
 #include "listener_connection_st.h"
 #include "or_connection_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 #include "socks_request_st.h"
 
 static connection_t *connection_listener_new(
index 070253dce650a10ab5b7b340b9e6af8b423c50de..1810c39546fe54e0462fd85ddc1dfa31721be6d4 100644 (file)
@@ -64,6 +64,7 @@
 #include "or_connection_st.h"
 #include "or_handshake_certs_st.h"
 #include "or_handshake_state_st.h"
+#include "routerinfo_st.h"
 
 static int connection_tls_finish_handshake(or_connection_t *conn);
 static int connection_or_launch_v3_or_handshake(or_connection_t *conn);
index 642d3877458269c295ed5876cea65b10c5f8eb7a..520b6178f79d50ce041dd9776d8b48441f2df3ae 100644 (file)
@@ -94,6 +94,7 @@
 #include "rend_authorized_client_st.h"
 #include "rend_encoded_v2_service_descriptor_st.h"
 #include "rend_service_descriptor_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "socks_request_st.h"
 
index 73fa07bfe38b9b3f25f5438ebe6cb7fcb1de72ed..94a6139f57b3f8a04a328b39398e7403a9c2672d 100644 (file)
@@ -36,6 +36,7 @@
 #include "networkstatus_voter_info_st.h"
 #include "node_st.h"
 #include "ns_detached_signatures_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "vote_microdesc_hash_st.h"
 #include "vote_routerstatus_st.h"
index f3080bc1f1391409f40c1cbc741a9c4cea009668..4e2e9688677c5bd824417ca24256fa899fd08305 100644 (file)
@@ -61,6 +61,7 @@
 #include "networkstatus_st.h"
 #include "node_st.h"
 #include "rend_service_descriptor_st.h"
+#include "routerinfo_st.h"
 
 /**
  * \file directory.c
index 8cfccda61e201da9125712c5b81b27831c1386ce..e54782d19683b154e85547d19b8f49f0a785eb83 100644 (file)
@@ -40,6 +40,7 @@
 #include "extrainfo_st.h"
 #include "microdesc_st.h"
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "tor_version_st.h"
 #include "vote_routerstatus_st.h"
index 564af4ba48a6a8723cd4c3ba24243eea96c43926..468b231f7b8b39027116cf8ead3e039fef6599fd 100644 (file)
@@ -296,6 +296,7 @@ ORHEADERS = \
        src/or/rephist.h                                \
        src/or/replaycache.h                            \
        src/or/router.h                                 \
+       src/or/routerinfo_st.h                          \
        src/or/routerkeys.h                             \
        src/or/routerlist.h                             \
        src/or/routerlist_st.h                          \
index 73c23ee980a0cfc1ac089b8c662f8d3e81d894c7..664105046b01892b4944c819ee602ea7e1ebbe75 100644 (file)
 #include "networkstatus_st.h"
 #include "or_connection_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 #include "socks_request_st.h"
 
 #ifdef HAVE_SYSTEMD
index 1951414a8abd7844be396ac241a72bdcdd7203ac..dd994f0852e6d9a47e1ca2c3100710241d02d01e 100644 (file)
@@ -82,6 +82,7 @@
 #include "networkstatus_voter_info_st.h"
 #include "ns_detached_signatures_st.h"
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "vote_microdesc_hash_st.h"
 #include "vote_routerstatus_st.h"
index 91d10033682f08057930a6c78f973bf40a00cc12..5e575e9a83f46109a6fddbed7ae1157c9b4d9360 100644 (file)
@@ -72,6 +72,7 @@
 #include "microdesc_st.h"
 #include "networkstatus_st.h"
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "routerstatus_st.h"
 
index 40d7dfee31d3d57efb978f3bbdd69c3d5608d937..208ec6d33ebf33a66a7282d5e1edf176fe6b23b9 100644 (file)
@@ -1599,100 +1599,7 @@ typedef struct protover_summary_flags_t {
   unsigned int supports_v3_rendezvous_point: 1;
 } protover_summary_flags_t;
 
-/** Information about another onion router in the network. */
-typedef struct {
-  signed_descriptor_t cache_info;
-  char *nickname; /**< Human-readable OR name. */
-
-  uint32_t addr; /**< IPv4 address of OR, in host order. */
-  uint16_t or_port; /**< Port for TLS connections. */
-  uint16_t dir_port; /**< Port for HTTP directory connections. */
-
-  /** A router's IPv6 address, if it has one. */
-  /* XXXXX187 Actually these should probably be part of a list of addresses,
-   * not just a special case.  Use abstractions to access these; don't do it
-   * directly. */
-  tor_addr_t ipv6_addr;
-  uint16_t ipv6_orport;
-
-  crypto_pk_t *onion_pkey; /**< Public RSA key for onions. */
-  crypto_pk_t *identity_pkey;  /**< Public RSA key for signing. */
-  /** Public curve25519 key for onions */
-  curve25519_public_key_t *onion_curve25519_pkey;
-  /** What's the earliest expiration time on all the certs in this
-   * routerinfo? */
-  time_t cert_expiration_time;
-
-  char *platform; /**< What software/operating system is this OR using? */
-
-  char *protocol_list; /**< Encoded list of subprotocol versions supported
-                        * by this OR */
-
-  /* link info */
-  uint32_t bandwidthrate; /**< How many bytes does this OR add to its token
-                           * bucket per second? */
-  uint32_t bandwidthburst; /**< How large is this OR's token bucket? */
-  /** How many bytes/s is this router known to handle? */
-  uint32_t bandwidthcapacity;
-  smartlist_t *exit_policy; /**< What streams will this OR permit
-                             * to exit on IPv4?  NULL for 'reject *:*'. */
-  /** What streams will this OR permit to exit on IPv6?
-   * NULL for 'reject *:*' */
-  struct short_policy_t *ipv6_exit_policy;
-  long uptime; /**< How many seconds the router claims to have been up */
-  smartlist_t *declared_family; /**< Nicknames of router which this router
-                                 * claims are its family. */
-  char *contact_info; /**< Declared contact info for this router. */
-  unsigned int is_hibernating:1; /**< Whether the router claims to be
-                                  * hibernating */
-  unsigned int caches_extra_info:1; /**< Whether the router says it caches and
-                                     * serves extrainfo documents. */
-  unsigned int allow_single_hop_exits:1;  /**< Whether the router says
-                                           * it allows single hop exits. */
-
-  unsigned int wants_to_be_hs_dir:1; /**< True iff this router claims to be
-                                      * a hidden service directory. */
-  unsigned int policy_is_reject_star:1; /**< True iff the exit policy for this
-                                         * router rejects everything. */
-  /** True if, after we have added this router, we should re-launch
-   * tests for it. */
-  unsigned int needs_retest_if_added:1;
-
-  /** True iff this router included "tunnelled-dir-server" in its descriptor,
-   * implying it accepts tunnelled directory requests, or it advertised
-   * dir_port > 0. */
-  unsigned int supports_tunnelled_dir_requests:1;
-
-  /** Used during voting to indicate that we should not include an entry for
-   * this routerinfo. Used only during voting. */
-  unsigned int omit_from_vote:1;
-
-  /** Flags to summarize the protocol versions for this routerinfo_t. */
-  protover_summary_flags_t pv;
-
-/** Tor can use this router for general positions in circuits; we got it
- * from a directory server as usual, or we're an authority and a server
- * uploaded it. */
-#define ROUTER_PURPOSE_GENERAL 0
-/** Tor should avoid using this router for circuit-building: we got it
- * from a controller.  If the controller wants to use it, it'll have to
- * ask for it by identity. */
-#define ROUTER_PURPOSE_CONTROLLER 1
-/** Tor should use this router only for bridge positions in circuits: we got
- * it via a directory request from the bridge itself, or a bridge
- * authority. */
-#define ROUTER_PURPOSE_BRIDGE 2
-/** Tor should not use this router; it was marked in cached-descriptors with
- * a purpose we didn't recognize. */
-#define ROUTER_PURPOSE_UNKNOWN 255
-
-  /** In what way did we find out about this router?  One of ROUTER_PURPOSE_*.
-   * Routers of different purposes are kept segregated and used for different
-   * things; see notes on ROUTER_PURPOSE_* macros above.
-   */
-  uint8_t purpose;
-} routerinfo_t;
-
+typedef struct routerinfo_t routerinfo_t;
 typedef struct extrainfo_t extrainfo_t;
 typedef struct routerstatus_t routerstatus_t;
 
index 07cf12387fc6927834967ade60e05b7cf127e5c2..bc4a9a920c64e3b77fb5042b15be194d35ce0e13 100644 (file)
@@ -34,6 +34,7 @@
 #include "microdesc_st.h"
 #include "node_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 /** Policy that addresses for incoming SOCKS connections must match. */
index 1eaf6f7dbaf59b87ae70194aa358523f7b6d23d4..ff97b52664109057b10b31172a4a34bb035ee144 100644 (file)
@@ -87,6 +87,7 @@
 #include "entry_connection_st.h"
 #include "or_circuit_st.h"
 #include "origin_circuit_st.h"
+#include "routerinfo_st.h"
 #include "socks_request_st.h"
 
 static edge_connection_t *relay_lookup_conn(circuit_t *circ, cell_t *cell,
index 28dd360d35ad2068c5bb5bfbe09501f53515b750..ddbfb03135d8433a477fce3f0b050cae55bc21f2 100644 (file)
@@ -47,6 +47,7 @@
 #include "node_st.h"
 #include "origin_circuit_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 
 /**
  * \file router.c
diff --git a/src/or/routerinfo_st.h b/src/or/routerinfo_st.h
new file mode 100644 (file)
index 0000000..800a8cb
--- /dev/null
@@ -0,0 +1,105 @@
+/* Copyright (c) 2001 Matej Pfajfar.
+ * Copyright (c) 2001-2004, Roger Dingledine.
+ * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
+ * Copyright (c) 2007-2017, The Tor Project, Inc. */
+/* See LICENSE for licensing information */
+
+#ifndef ROUTERINFO_ST_H
+#define ROUTERINFO_ST_H
+
+/** Information about another onion router in the network. */
+struct routerinfo_t {
+  signed_descriptor_t cache_info;
+  char *nickname; /**< Human-readable OR name. */
+
+  uint32_t addr; /**< IPv4 address of OR, in host order. */
+  uint16_t or_port; /**< Port for TLS connections. */
+  uint16_t dir_port; /**< Port for HTTP directory connections. */
+
+  /** A router's IPv6 address, if it has one. */
+  /* XXXXX187 Actually these should probably be part of a list of addresses,
+   * not just a special case.  Use abstractions to access these; don't do it
+   * directly. */
+  tor_addr_t ipv6_addr;
+  uint16_t ipv6_orport;
+
+  crypto_pk_t *onion_pkey; /**< Public RSA key for onions. */
+  crypto_pk_t *identity_pkey;  /**< Public RSA key for signing. */
+  /** Public curve25519 key for onions */
+  curve25519_public_key_t *onion_curve25519_pkey;
+  /** What's the earliest expiration time on all the certs in this
+   * routerinfo? */
+  time_t cert_expiration_time;
+
+  char *platform; /**< What software/operating system is this OR using? */
+
+  char *protocol_list; /**< Encoded list of subprotocol versions supported
+                        * by this OR */
+
+  /* link info */
+  uint32_t bandwidthrate; /**< How many bytes does this OR add to its token
+                           * bucket per second? */
+  uint32_t bandwidthburst; /**< How large is this OR's token bucket? */
+  /** How many bytes/s is this router known to handle? */
+  uint32_t bandwidthcapacity;
+  smartlist_t *exit_policy; /**< What streams will this OR permit
+                             * to exit on IPv4?  NULL for 'reject *:*'. */
+  /** What streams will this OR permit to exit on IPv6?
+   * NULL for 'reject *:*' */
+  struct short_policy_t *ipv6_exit_policy;
+  long uptime; /**< How many seconds the router claims to have been up */
+  smartlist_t *declared_family; /**< Nicknames of router which this router
+                                 * claims are its family. */
+  char *contact_info; /**< Declared contact info for this router. */
+  unsigned int is_hibernating:1; /**< Whether the router claims to be
+                                  * hibernating */
+  unsigned int caches_extra_info:1; /**< Whether the router says it caches and
+                                     * serves extrainfo documents. */
+  unsigned int allow_single_hop_exits:1;  /**< Whether the router says
+                                           * it allows single hop exits. */
+
+  unsigned int wants_to_be_hs_dir:1; /**< True iff this router claims to be
+                                      * a hidden service directory. */
+  unsigned int policy_is_reject_star:1; /**< True iff the exit policy for this
+                                         * router rejects everything. */
+  /** True if, after we have added this router, we should re-launch
+   * tests for it. */
+  unsigned int needs_retest_if_added:1;
+
+  /** True iff this router included "tunnelled-dir-server" in its descriptor,
+   * implying it accepts tunnelled directory requests, or it advertised
+   * dir_port > 0. */
+  unsigned int supports_tunnelled_dir_requests:1;
+
+  /** Used during voting to indicate that we should not include an entry for
+   * this routerinfo. Used only during voting. */
+  unsigned int omit_from_vote:1;
+
+  /** Flags to summarize the protocol versions for this routerinfo_t. */
+  protover_summary_flags_t pv;
+
+/** Tor can use this router for general positions in circuits; we got it
+ * from a directory server as usual, or we're an authority and a server
+ * uploaded it. */
+#define ROUTER_PURPOSE_GENERAL 0
+/** Tor should avoid using this router for circuit-building: we got it
+ * from a controller.  If the controller wants to use it, it'll have to
+ * ask for it by identity. */
+#define ROUTER_PURPOSE_CONTROLLER 1
+/** Tor should use this router only for bridge positions in circuits: we got
+ * it via a directory request from the bridge itself, or a bridge
+ * authority. */
+#define ROUTER_PURPOSE_BRIDGE 2
+/** Tor should not use this router; it was marked in cached-descriptors with
+ * a purpose we didn't recognize. */
+#define ROUTER_PURPOSE_UNKNOWN 255
+
+  /** In what way did we find out about this router?  One of ROUTER_PURPOSE_*.
+   * Routers of different purposes are kept segregated and used for different
+   * things; see notes on ROUTER_PURPOSE_* macros above.
+   */
+  uint8_t purpose;
+};
+
+#endif
+
index 425ad8273f43a416c3a051cca365325b78d28342..ad7e4102c26e2c0dcd766bae869598bf711366c3 100644 (file)
 #include "networkstatus_st.h"
 #include "networkstatus_voter_info_st.h"
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "vote_routerstatus_st.h"
 
index dee4220b6e7020b757d47a5f9d4144d7e8612fcb..040745f651f2c679d98101d53408fda43f2aa438 100644 (file)
@@ -91,6 +91,7 @@
 #include "rend_authorized_client_st.h"
 #include "rend_intro_point_st.h"
 #include "rend_service_descriptor_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "tor_version_st.h"
 #include "vote_microdesc_hash_st.h"
index 1033702f3911ea4fcfd8b69562da3eebce87a184..415fa0ce7c66a1749034bf124e51952e4b1f89a0 100644 (file)
@@ -37,6 +37,7 @@
 #include "routerset.h"
 
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 /** Return a new empty routerset. */
index 4b8033d114c70093b63eb41fa8af22c525f66883..2cfc4367944a26ada279a06ee972f06491e4941a 100644 (file)
@@ -30,6 +30,8 @@
 #include "hs_service.h"
 #include "dos.h"
 
+#include "routerinfo_st.h"
+
 static void log_accounting(const time_t now, const or_options_t *options);
 #include "geoip.h"
 
index efc4d4e8aba3626011d22f7702deed66d9587023..93469573ff874423c7327f6191413785de4678ba 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "microdesc_st.h"
 #include "networkstatus_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 #include "test.h"
index 2b761d2baea52b5468bf6ae0aec39dbeb26fc56f..ea0f45f22e25cfc3ae0de2c8d849a8d3c0f3a211 100644 (file)
@@ -46,6 +46,7 @@
 
 #include "dir_server_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 
 static void
 test_config_addressmap(void *arg)
index 6f9c2706c225fcf1573fce83d50c8748b3ce035b..5d2aa65c808c957b9443a76d05eca3d5fa414ef1 100644 (file)
@@ -28,6 +28,7 @@
 #include "entry_connection_st.h"
 #include "node_st.h"
 #include "or_connection_st.h"
+#include "routerinfo_st.h"
 #include "socks_request_st.h"
 
 static void * test_conn_get_basic_setup(const struct testcase_t *tc);
index c25665d3e384ee54343e34e750798d8d88e4cdc7..ac5b3bd7c2286c15e3aaecfc92f0982cdf026c88 100644 (file)
@@ -52,6 +52,7 @@
 #include "networkstatus_voter_info_st.h"
 #include "ns_detached_signatures_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 #include "tor_version_st.h"
 #include "vote_microdesc_hash_st.h"
index c23282ba851ba89ea276e333816d4e3378c97bc9..3ec9fd6910d08e75ecdadb7601c52938adae896b 100644 (file)
@@ -17,6 +17,7 @@
 #include "authority_cert_st.h"
 #include "networkstatus_st.h"
 #include "networkstatus_voter_info_st.h"
+#include "routerinfo_st.h"
 #include "vote_microdesc_hash_st.h"
 #include "vote_routerstatus_st.h"
 
index c8704505e94551b982bdef801aeb36b7ff48a3b6..3babffb9ee809d0a75b4381689dafe736ee61678 100644 (file)
@@ -38,6 +38,7 @@
 #include "dir_server_st.h"
 #include "networkstatus_st.h"
 #include "rend_encoded_v2_service_descriptor_st.h"
+#include "routerinfo_st.h"
 #include "routerlist_st.h"
 
 #ifdef _WIN32
index 6a93921f908b6e939f6c4224e070ef7c50fb7a6d..bc075e91ab21b1f4e13caa6e7038aec26687f02d 100644 (file)
@@ -37,6 +37,7 @@
 #include "networkstatus_st.h"
 #include "node_st.h"
 #include "origin_circuit_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 #include "test_helpers.h"
index c546af2fe9547950104396c6bd4515892e7a655b..f2c520aeeca04c714f72626babfb5dd9845a2042 100644 (file)
@@ -25,6 +25,7 @@
 #include "node_st.h"
 #include "rend_encoded_v2_service_descriptor_st.h"
 #include "rend_intro_point_st.h"
+#include "routerinfo_st.h"
 
 #include "test_helpers.h"
 
index 342626bcc1015ba32f2af6a0da2e475c5f6398f0..b4969fa7b0d05e3411334f7c74a0ac808a1223a5 100644 (file)
@@ -36,6 +36,7 @@
 #include "microdesc_st.h"
 #include "networkstatus_st.h"
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 /** Test the validation of HS v3 addresses */
index ab27b4dc4e73b400b964bcb236ae0752fab9d649..a4a1449b4d7534c7433178620bde8180ed245153 100644 (file)
@@ -58,6 +58,7 @@
 #include "networkstatus_st.h"
 #include "node_st.h"
 #include "origin_circuit_st.h"
+#include "routerinfo_st.h"
 
 /* Trunnel */
 #include "hs/cell_establish_intro.h"
index 59308933534d0d8813f0ba5250e40a38e207d149..28d3494663d9bccab2ff24327b5c2ef1018ee8c2 100644 (file)
@@ -15,6 +15,7 @@
 
 #include "microdesc_st.h"
 #include "networkstatus_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 #include "test.h"
index e41557ed35167c47c264dc98bb2f10d41f15fad2..df69466fbbe8351d96d68d8b0d1e46088f58ff82 100644 (file)
@@ -15,6 +15,7 @@
 #include "microdesc_st.h"
 #include "networkstatus_st.h"
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 #include "test.h"
index 71c623070249a8495616ee79594e5259e835f97f..61ebd27dc9d604648e6cf7a9417c2a508ce78f91 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "node_st.h"
 #include "port_cfg_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 /* Helper: assert that short_policy parses and writes back out as itself,
index e5d5316179b0eb23de10c4dd6797b346cca1f264..22af3473baa60f043854ca27adf098d0ca13868d 100644 (file)
@@ -15,6 +15,7 @@
 #include "rend_encoded_v2_service_descriptor_st.h"
 #include "rend_intro_point_st.h"
 #include "rend_service_descriptor_st.h"
+#include "routerinfo_st.h"
 
 #include "rend_test_helpers.h"
 #include "log_test_helpers.h"
index 4e96e2453469af00b7c55fec4a8cef4775c3d481..d560a1aecf27fc29736348707294acfb9e91226b 100644 (file)
@@ -14,6 +14,8 @@
 #include "router.h"
 #include "routerlist.h"
 
+#include "routerinfo_st.h"
+
 /* Test suite stuff */
 #include "test.h"
 
index 21db9bb3ba8c8bc52f21e5b124c10a0ea479359d..004b88ac8320bee08a07530c61aafdfb2ebfc2e9 100644 (file)
@@ -11,6 +11,7 @@
 #include "nodelist.h"
 
 #include "node_st.h"
+#include "routerinfo_st.h"
 #include "routerstatus_st.h"
 
 #include "test.h"
index 062a28f73028a75078975f6c6fd4db7ee8428311..cedce16765a351e23821b06d42e050b22b3b038f 100644 (file)
@@ -26,6 +26,7 @@
 #include "statefile.h"
 
 #include "origin_circuit_st.h"
+#include "routerinfo_st.h"
 
 #include "test.h"