static void
channel_remove_from_digest_map(channel_t *chan)
{
- channel_t *tmp, *head;
+ channel_t *tmp;
tor_assert(chan);
tmp = digestmap_get(channel_identity_map, chan->identity_digest);
if (tmp) {
/* Okay, it's here */
- head = tmp; /* Keep track of list head */
/* Look for this channel */
while (tmp && tmp != chan) {
tmp = tmp->next_with_same_id;
channel_tls_handle_var_cell(var_cell_t *var_cell, or_connection_t *conn)
{
channel_tls_t *chan;
- int handshaking;
#ifdef KEEP_TIMING_STATS
/* how many of each cell have we seen so far this second? needs better
return;
}
- handshaking = (TO_CONN(conn)->state != OR_CONN_STATE_OPEN);
-
if (TO_CONN(conn)->marked_for_close)
return;
chan_circid_circuit_map_t *found;
channel_t *old_chan, **chan_ptr;
circid_t old_id, *circid_ptr;
- int was_active, make_active, attached = 0;
+ int make_active, attached = 0;
if (direction == CELL_DIRECTION_OUT) {
chan_ptr = &circ->n_chan;
circid_ptr = &circ->n_circ_id;
- was_active = circ->next_active_on_n_chan != NULL;
make_active = circ->n_chan_cells.n > 0;
} else {
or_circuit_t *c = TO_OR_CIRCUIT(circ);
chan_ptr = &c->p_chan;
circid_ptr = &c->p_circ_id;
- was_active = c->next_active_on_p_chan != NULL;
make_active = c->p_chan_cells.n > 0;
}
old_chan = *chan_ptr;
cell_direction_t direction,
unsigned int cell_count)
{
- ewma_policy_data_t *pol = NULL;
ewma_policy_circ_data_t *cdata = NULL;
tor_assert(cmux);
/* Shut the compiler up */
tor_assert(cell_count == cell_count);
- pol = TO_EWMA_POL_DATA(pol_data);
-
cdata = tor_malloc_zero(sizeof(*cdata));
cdata->_base.magic = EWMA_POL_CIRC_DATA_MAGIC;
cdata->circ = circ;
circuitmux_policy_circ_data_t *pol_circ_data)
{
- ewma_policy_data_t *pol = NULL;
ewma_policy_circ_data_t *cdata = NULL;
tor_assert(cmux);
tor_assert(circ);
tor_assert(pol_data);
- pol = TO_EWMA_POL_DATA(pol_data);
if (!pol_circ_data) return;