|
@@ -2308,6 +2308,8 @@ connection_or_write_cell_to_buf(const cell_t *cell, or_connection_t *conn)
|
|
|
|
|
|
cell_pack(&networkcell, cell, conn->wide_circ_ids);
|
|
|
|
|
|
+
|
|
|
+ * since they are sent via chan->write_cell() (which is not packed) */
|
|
|
rep_hist_padding_count_write(PADDING_TYPE_TOTAL);
|
|
|
if (cell->command == CELL_PADDING)
|
|
|
rep_hist_padding_count_write(PADDING_TYPE_CELL);
|
|
@@ -2318,7 +2320,7 @@ connection_or_write_cell_to_buf(const cell_t *cell, or_connection_t *conn)
|
|
|
if (conn->chan) {
|
|
|
channel_timestamp_active(TLS_CHAN_TO_BASE(conn->chan));
|
|
|
|
|
|
- if (TLS_CHAN_TO_BASE(conn->chan)->currently_padding) {
|
|
|
+ if (TLS_CHAN_TO_BASE(conn->chan)->padding_enabled) {
|
|
|
rep_hist_padding_count_write(PADDING_TYPE_ENABLED_TOTAL);
|
|
|
if (cell->command == CELL_PADDING)
|
|
|
rep_hist_padding_count_write(PADDING_TYPE_ENABLED_CELL);
|
|
@@ -2348,6 +2350,7 @@ connection_or_write_var_cell_to_buf,(const var_cell_t *cell,
|
|
|
if (conn->base_.state == OR_CONN_STATE_OR_HANDSHAKING_V3)
|
|
|
or_handshake_state_record_var_cell(conn, conn->handshake_state, cell, 0);
|
|
|
|
|
|
+ rep_hist_padding_count_write(PADDING_TYPE_TOTAL);
|
|
|
|
|
|
if (conn->chan)
|
|
|
channel_timestamp_active(TLS_CHAN_TO_BASE(conn->chan));
|