mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
misc cleanups
svn:r5428
This commit is contained in:
parent
f824fb5f83
commit
700c370a3b
2 changed files with 3 additions and 2 deletions
|
@ -185,7 +185,7 @@ circuit_state_to_string(int state)
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case CIRCUIT_STATE_BUILDING: return "doing handshakes";
|
case CIRCUIT_STATE_BUILDING: return "doing handshakes";
|
||||||
case CIRCUIT_STATE_ONIONSKIN_PENDING: return "processing the onion";
|
case CIRCUIT_STATE_ONIONSKIN_PENDING: return "processing the onion";
|
||||||
case CIRCUIT_STATE_OR_WAIT: return "connecting to firsthop";
|
case CIRCUIT_STATE_OR_WAIT: return "connecting to server";
|
||||||
case CIRCUIT_STATE_OPEN: return "open";
|
case CIRCUIT_STATE_OPEN: return "open";
|
||||||
default:
|
default:
|
||||||
warn(LD_BUG, "Bug: unknown circuit state %d", state);
|
warn(LD_BUG, "Bug: unknown circuit state %d", state);
|
||||||
|
|
|
@ -227,7 +227,8 @@ command_process_create_cell(cell_t *cell, connection_t *conn)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Process a 'created' <b>cell</b> that just arrived from <b>conn</b>. Find the circuit
|
/** Process a 'created' <b>cell</b> that just arrived from <b>conn</b>.
|
||||||
|
* Find the circuit
|
||||||
* that it's intended for. If we're not the origin of the circuit, package
|
* that it's intended for. If we're not the origin of the circuit, package
|
||||||
* the 'created' cell in an 'extended' relay cell and pass it back. If we
|
* the 'created' cell in an 'extended' relay cell and pass it back. If we
|
||||||
* are the origin of the circuit, send it to circuit_finish_handshake() to
|
* are the origin of the circuit, send it to circuit_finish_handshake() to
|
||||||
|
|
Loading…
Add table
Reference in a new issue