Ticket #13192: 0001-CLASSIFIED-Log-statements-and-XXX-comments.patch

File 0001-CLASSIFIED-Log-statements-and-XXX-comments.patch, 2.0 KB (added by karsten, 4 years ago)
  • src/or/command.c

    From 1dfe5703bf1ce42c78050fb59cd57c0d00ea16eb Mon Sep 17 00:00:00 2001
    From: Karsten Loesing <karsten.loesing@gmx.net>
    Date: Wed, 10 Dec 2014 11:15:44 +0100
    Subject: [PATCH] CLASSIFIED!  Log statements and XXX comments.
    
    ---
     src/or/command.c | 2 ++
     src/or/rendmid.c | 1 +
     src/or/rephist.c | 8 ++++++++
     3 files changed, 11 insertions(+)
    
    diff --git a/src/or/command.c b/src/or/command.c
    index 8e214bf..a212cbf 100644
    a b command_process_relay_cell(cell_t *cell, channel_t *chan) 
    518518  if (options->HiddenServiceStatistics &&
    519519      !CIRCUIT_IS_ORIGIN(circ) &&
    520520      TO_OR_CIRCUIT(circ)->circuit_carries_hs_traffic_stats) {
     521    log_warn(LD_GENERAL, "Saw new RP cell in %u.",
     522             TO_OR_CIRCUIT(circ)->p_circ_id);
    521523    rep_hist_seen_new_rp_cell();
    522524  }
    523525}
  • src/or/rendmid.c

    diff --git a/src/or/rendmid.c b/src/or/rendmid.c
    index 1c56471..e7169a3 100644
    a b rend_mid_rendezvous(or_circuit_t *circ, const uint8_t *request, 
    320320  /* Statistics: Mark this circuit as an RP circuit so that we collect
    321321     stats from it. */
    322322  if (options->HiddenServiceStatistics) {
     323    log_warn(LD_GENERAL, "New RP circuit %u.", (unsigned)circ->p_circ_id);
    323324    circ->circuit_carries_hs_traffic_stats = 1;
    324325  }
    325326
  • src/or/rephist.c

    diff --git a/src/or/rephist.c b/src/or/rephist.c
    index b1a0513..96485b2 100644
    a b rep_hist_seen_maybe_new_hs(const crypto_pk_t *pubkey) 
    30233023                     pubkey_hash)) {
    30243024    digestmap_set(hs_stats->onions_seen_this_period,
    30253025                  pubkey_hash, (void*)(uintptr_t)1);
     3026
     3027    log_warn(LD_GENERAL, "Saw new HS %s (now %d)",
     3028             hex_str(pubkey_hash, DIGEST_LEN),
     3029             digestmap_size(hs_stats->onions_seen_this_period));
     3030  } else {
     3031    log_warn(LD_GENERAL, "Not double counting %s (still %d)",
     3032             hex_str(pubkey_hash, DIGEST_LEN),
     3033             digestmap_size(hs_stats->onions_seen_this_period));
    30263034  }
    30273035}
    30283036