IPSEC-AH: fix packet drop 92/16292/1
authorNeale Ranns <nranns@cisco.com>
Fri, 30 Nov 2018 09:15:11 +0000 (09:15 +0000)
committerNeale Ranns <nranns@cisco.com>
Fri, 30 Nov 2018 09:19:32 +0000 (09:19 +0000)
Change-Id: I45b97cfd0c3785bfbf6d142d362bd3d4d56bae00
Signed-off-by: Neale Ranns <nranns@cisco.com>
src/vnet/ipsec/ah_decrypt.c
src/vnet/ipsec/esp_decrypt.c

index abe2e6f..29c59fd 100644 (file)
@@ -166,11 +166,8 @@ ah_decrypt_node_fn (vlib_main_t * vm,
 
              if (PREDICT_FALSE (rv))
                {
-                 clib_warning ("anti-replay SPI %u seq %u", sa0->spi, seq);
                  vlib_node_increment_counter (vm, ah_decrypt_node.index,
                                               AH_DECRYPT_ERROR_REPLAY, 1);
-                 to_next[0] = i_bi0;
-                 to_next += 1;
                  goto trace;
                }
            }
@@ -220,8 +217,6 @@ ah_decrypt_node_fn (vlib_main_t * vm,
                  vlib_node_increment_counter (vm, ah_decrypt_node.index,
                                               AH_DECRYPT_ERROR_INTEG_ERROR,
                                               1);
-                 to_next[0] = i_bi0;
-                 to_next += 1;
                  goto trace;
                }
 
index a0eeed4..7f9be89 100644 (file)
@@ -185,7 +185,6 @@ esp_decrypt_node_fn (vlib_main_t * vm,
 
              if (PREDICT_FALSE (rv))
                {
-                 clib_warning ("anti-replay SPI %u seq %u", sa0->spi, seq);
                  vlib_node_increment_counter (vm, esp_decrypt_node.index,
                                               ESP_DECRYPT_ERROR_REPLAY, 1);
                  o_bi0 = i_bi0;
@@ -330,7 +329,6 @@ esp_decrypt_node_fn (vlib_main_t * vm,
                    next0 = ESP_DECRYPT_NEXT_IP6_INPUT;
                  else
                    {
-                     clib_warning ("next header: 0x%x", f0->next_header);
                      vlib_node_increment_counter (vm, esp_decrypt_node.index,
                                                   ESP_DECRYPT_ERROR_DECRYPTION_FAILED,
                                                   1);