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 _
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);
.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 =
{
.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 =
{