The path mtu node uses errors defined by ip fragmentation.
Type: fix
Change-Id: I1f173955919a4f555ab0309cd8201ec342a0ae92
Signed-off-by: Benoît Ganne <bganne@cisco.com>
return IP_FRAG_ERROR_NONE;
}
return IP_FRAG_ERROR_NONE;
}
-static char *ip4_frag_error_strings[] = {
+char *ip4_frag_error_strings[] = {
#define _(sym,string) string,
foreach_ip_frag_error
#undef _
#define _(sym,string) string,
foreach_ip_frag_error
#undef _
IP_FRAG_N_ERROR,
} ip_frag_error_t;
IP_FRAG_N_ERROR,
} ip_frag_error_t;
+extern char *ip4_frag_error_strings[];
+
void ip_frag_set_vnet_buffer (vlib_buffer_t * b, u16 mtu,
u8 next_index, u8 flags);
void ip_frag_set_vnet_buffer (vlib_buffer_t * b, u16 mtu,
u8 next_index, u8 flags);
.name = "ip4-pmtu-dpo",
.vector_size = sizeof (u32),
.format_trace = format_ip_pmtu_trace,
.name = "ip4-pmtu-dpo",
.vector_size = sizeof (u32),
.format_trace = format_ip_pmtu_trace,
+ .n_errors = IP_FRAG_N_ERROR,
+ .error_strings = ip4_frag_error_strings,
.n_next_nodes = IP_PMTU_N_NEXT,
.next_nodes =
{
.n_next_nodes = IP_PMTU_N_NEXT,
.next_nodes =
{
.name = "ip6-pmtu-dpo",
.vector_size = sizeof (u32),
.format_trace = format_ip_pmtu_trace,
.name = "ip6-pmtu-dpo",
.vector_size = sizeof (u32),
.format_trace = format_ip_pmtu_trace,
+ .n_errors = IP_FRAG_N_ERROR,
+ .error_strings = ip4_frag_error_strings,
.n_next_nodes = IP_PMTU_N_NEXT,
.next_nodes =
{
.n_next_nodes = IP_PMTU_N_NEXT,
.next_nodes =
{