diff options
author | Benoît Ganne <bganne@cisco.com> | 2021-09-09 11:58:28 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-10-07 15:22:57 +0000 |
commit | 43289951b23e491510baf1cedfad884321e83c30 (patch) | |
tree | 1fe30b9462fdc48342089a417cd7405a64211bb0 /src/vnet/ip/ip_path_mtu_node.c | |
parent | c7cceeebb738b0fabd93d2c4fdfd561321a2be1d (diff) |
ip: fix path MTU node errors definition
The path mtu node uses errors defined by ip fragmentation.
Type: fix
Change-Id: I1f173955919a4f555ab0309cd8201ec342a0ae92
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip_path_mtu_node.c')
-rw-r--r-- | src/vnet/ip/ip_path_mtu_node.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/ip/ip_path_mtu_node.c b/src/vnet/ip/ip_path_mtu_node.c index b13f9de849c..33be4bbcae9 100644 --- a/src/vnet/ip/ip_path_mtu_node.c +++ b/src/vnet/ip/ip_path_mtu_node.c @@ -176,7 +176,8 @@ VLIB_REGISTER_NODE (ip4_ip_pmtu_dpo_node) = { .name = "ip4-pmtu-dpo", .vector_size = sizeof (u32), .format_trace = format_ip_pmtu_trace, - .n_errors = 0, + .n_errors = IP_FRAG_N_ERROR, + .error_strings = ip4_frag_error_strings, .n_next_nodes = IP_PMTU_N_NEXT, .next_nodes = { @@ -187,7 +188,8 @@ VLIB_REGISTER_NODE (ip6_ip_pmtu_dpo_node) = { .name = "ip6-pmtu-dpo", .vector_size = sizeof (u32), .format_trace = format_ip_pmtu_trace, - .n_errors = 0, + .n_errors = IP_FRAG_N_ERROR, + .error_strings = ip4_frag_error_strings, .n_next_nodes = IP_PMTU_N_NEXT, .next_nodes = { |