aboutsummaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2003-11-11 03:01:48 +0000
committerNick Mathewson <nickm@torproject.org>2003-11-11 03:01:48 +0000
commit7bde42676b0e25ed422f842e82169375cd13fc5e (patch)
treedcd9e929c4970c8b88d542f0b8738184e3a41a7d /src/or/onion.c
parentdafb0e6a6eddc8b0fbf6de4292d49a311b2e712a (diff)
downloadtor-7bde42676b0e25ed422f842e82169375cd13fc5e.tar
tor-7bde42676b0e25ed422f842e82169375cd13fc5e.tar.gz
Rename aci to circ_id throughout.
svn:r784
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 90963a97a..72d5b39dd 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -8,17 +8,17 @@ extern or_options_t options; /* command-line and config-file options */
static int count_acceptable_routers(routerinfo_t **rarray, int rarray_len);
-int decide_aci_type(char *local_nick, char *remote_nick) {
+int decide_circ_id_type(char *local_nick, char *remote_nick) {
int result;
assert(remote_nick);
if(!local_nick)
- return ACI_TYPE_LOWER;
+ return CIRC_ID_TYPE_LOWER;
result = strcmp(local_nick, remote_nick);
assert(result);
if(result < 0)
- return ACI_TYPE_LOWER;
- return ACI_TYPE_HIGHER;
+ return CIRC_ID_TYPE_LOWER;
+ return CIRC_ID_TYPE_HIGHER;
}
struct onion_queue_t {
@@ -103,7 +103,7 @@ void onion_pending_remove(circuit_t *circ) {
} else { /* we need to hunt through the rest of the list */
for( ;tmpo->next && tmpo->next->circ != circ; tmpo=tmpo->next) ;
if(!tmpo->next) {
- log_fn(LOG_DEBUG,"circ (p_aci %d) not in list, probably at cpuworker.",circ->p_aci);
+ log_fn(LOG_DEBUG,"circ (p_circ_id %d) not in list, probably at cpuworker.",circ->p_circ_id);
return;
}
/* now we know tmpo->next->circ == circ */
@@ -128,7 +128,7 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key
memset(&cell, 0, sizeof(cell_t));
cell.command = CELL_CREATED;
- cell.aci = circ->p_aci;
+ cell.circ_id = circ->p_circ_id;
cell.length = DH_KEY_LEN;
circ->state = CIRCUIT_STATE_OPEN;