Kaynağa Gözat

Temporarily make spurious sendmes warn louder at arma's suggestion.

Nick Mathewson 11 yıl önce
ebeveyn
işleme
ca90aea5eb
1 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 4 2
      src/or/relay.c

+ 4 - 2
src/or/relay.c

@@ -1267,7 +1267,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
         if (layer_hint) {
         if (layer_hint) {
           if (layer_hint->package_window + CIRCWINDOW_INCREMENT >
           if (layer_hint->package_window + CIRCWINDOW_INCREMENT >
                 CIRCWINDOW_START_MAX) {
                 CIRCWINDOW_START_MAX) {
-            log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
+            /* XXXX024: Downgrade this back to LOG_PROTOCOL_WARN after a while*/
+            log_fn(LOG_WARN, LD_PROTOCOL,
                    "Bug/attack: unexpected sendme cell from exit relay. "
                    "Bug/attack: unexpected sendme cell from exit relay. "
                    "Closing circ.");
                    "Closing circ.");
             return -END_CIRC_REASON_TORPROTOCOL;
             return -END_CIRC_REASON_TORPROTOCOL;
@@ -1279,7 +1280,8 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
         } else {
         } else {
           if (circ->package_window + CIRCWINDOW_INCREMENT >
           if (circ->package_window + CIRCWINDOW_INCREMENT >
                 CIRCWINDOW_START_MAX) {
                 CIRCWINDOW_START_MAX) {
-            log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
+            /* XXXX024: Downgrade this back to LOG_PROTOCOL_WARN after a while*/
+            log_fn(LOG_WARN, LD_PROTOCOL,
                    "Bug/attack: unexpected sendme cell from client. "
                    "Bug/attack: unexpected sendme cell from client. "
                    "Closing circ.");
                    "Closing circ.");
             return -END_CIRC_REASON_TORPROTOCOL;
             return -END_CIRC_REASON_TORPROTOCOL;