summaryrefslogtreecommitdiff
path: root/src/or/or.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-07-26 19:05:34 +0000
committerNick Mathewson <nickm@torproject.org>2006-07-26 19:05:34 +0000
commita88ec48a39e5531fa80a0b5d5ec42dd31f268b67 (patch)
treecb2386170a1f452e113720dd0ee7726e02f3dd9a /src/or/or.h
parentf2dc012accd60312a67eb83c14691667235c9017 (diff)
downloadtor-a88ec48a39e5531fa80a0b5d5ec42dd31f268b67.tar.gz
tor-a88ec48a39e5531fa80a0b5d5ec42dd31f268b67.zip
r6902@Kushana: nickm | 2006-07-25 17:30:27 -0400
Move rend_query to origin_circuit_t where it belongs; save another 17 bytes per OR circuit. svn:r6903
Diffstat (limited to 'src/or/or.h')
-rw-r--r--src/or/or.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/or/or.h b/src/or/or.h
index 3ca90d4ae1..d70039eea7 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1110,13 +1110,6 @@ typedef struct circuit_t {
const char *marked_for_close_file; /**< For debugging: in which file was this
* circuit marked for close? */
- /**
- * The rend_query field holds the y portion of y.onion (nul-terminated)
- * if purpose is C_INTRODUCING or C_ESTABLISH_REND, or is a C_GENERAL
- * for a hidden service, or is S_*.
- */
- char rend_query[REND_SERVICE_ID_LEN+1];
-
/** The rend_pk_digest field holds a hash of location-hidden service's
* PK if purpose is INTRO_POINT or S_ESTABLISH_INTRO or S_RENDEZVOUSING.
*/
@@ -1155,6 +1148,13 @@ typedef struct origin_circuit_t {
*/
crypt_path_t *cpath;
+ /**
+ * The rend_query field holds the y portion of y.onion (nul-terminated)
+ * if purpose is C_INTRODUCING or C_ESTABLISH_REND, or is a C_GENERAL
+ * for a hidden service, or is S_*.
+ */
+ char rend_query[REND_SERVICE_ID_LEN+1];
+
} origin_circuit_t;
typedef struct or_circuit_t {
@@ -1592,8 +1592,8 @@ int circuit_id_used_on_conn(uint16_t circ_id, connection_t *conn);
circuit_t *circuit_get_by_edge_conn(connection_t *conn);
void circuit_unlink_all_from_or_conn(connection_t *conn, int reason);
circuit_t *circuit_get_by_global_id(uint32_t id);
-circuit_t *circuit_get_by_rend_query_and_purpose(const char *rend_query,
- uint8_t purpose);
+origin_circuit_t *circuit_get_by_rend_query_and_purpose(const char *rend_query,
+ uint8_t purpose);
circuit_t *circuit_get_next_by_pk_and_purpose(circuit_t *start,
const char *digest, uint8_t purpose);
or_circuit_t *circuit_get_rendezvous(const char *cookie);