ip:fix pmtu next node index errror, it should use own value 94/42594/4
authorguangming.zhang <[email protected]>
Tue, 1 Apr 2025 05:33:46 +0000 (05:33 +0000)
committerBenoit Ganne <[email protected]>
Mon, 6 Oct 2025 08:25:37 +0000 (08:25 +0000)
Type:fix
Change-Id: I5313f2ee28db47f120d0077f097bab7226819092
Signed-off-by: guangming.zhang <[email protected]>
src/vnet/ip/ip_path_mtu_node.c

index cadf1cb..24194ec 100644 (file)
@@ -22,6 +22,7 @@
 
 typedef enum
 {
+  IP_PMTU_FRAG_ICMP_ERROR,
   IP_PMTU_DROP,
   IP_PMTU_N_NEXT,
 } ip_pmtu_next_t;
@@ -102,12 +103,11 @@ ip_pmtu_dpo_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
                p0, ICMP4_destination_unreachable,
                ICMP4_destination_unreachable_fragmentation_needed_and_dont_fragment_set,
                ipm0->ipm_pmtu);
-             next0 = IP_FRAG_NEXT_ICMP_ERROR;
+             next0 = IP_PMTU_FRAG_ICMP_ERROR;
            }
          else
            {
-             next0 =
-               (error0 == IP_FRAG_ERROR_NONE ? next0 : IP_FRAG_NEXT_DROP);
+             next0 = (error0 == IP_FRAG_ERROR_NONE ? next0 : IP_PMTU_DROP);
            }
 
          if (error0 == IP_FRAG_ERROR_NONE)
@@ -178,6 +178,7 @@ VLIB_REGISTER_NODE (ip4_ip_pmtu_dpo_node) = {
   .n_next_nodes = IP_PMTU_N_NEXT,
   .next_nodes =
   {
+   [IP_PMTU_FRAG_ICMP_ERROR] = "ip4-icmp-error",
    [IP_PMTU_DROP] = "ip4-drop",
   }
 };
@@ -190,6 +191,7 @@ VLIB_REGISTER_NODE (ip6_ip_pmtu_dpo_node) = {
   .n_next_nodes = IP_PMTU_N_NEXT,
   .next_nodes =
   {
+   [IP_PMTU_FRAG_ICMP_ERROR] = "ip6-icmp-error",
    [IP_PMTU_DROP] = "ip6-drop",
   }
 };