ip6: fix icmp throttling error index 26/40926/1
authorMaxime Peim <[email protected]>
Fri, 24 May 2024 13:29:50 +0000 (15:29 +0200)
committerMaxime Peim <[email protected]>
Fri, 24 May 2024 13:29:50 +0000 (15:29 +0200)
Type: fix
Change-Id: I57ce42c193fd9408b9d4790482ea76d784148c30
Signed-off-by: Maxime Peim <[email protected]>
src/vnet/ip/icmp6.c

index b095f67..f93ebce 100644 (file)
@@ -338,7 +338,7 @@ ip6_icmp_error (vlib_main_t * vm,
 
          if (throttle_check (&icmp_throttle, thread_index, r0, seed))
            {
-             vlib_error_count (vm, node->node_index, ICMP4_ERROR_DROP, 1);
+             vlib_error_count (vm, node->node_index, ICMP6_ERROR_DROP, 1);
              from += 1;
              n_left_from -= 1;
              continue;