vlib: use error description when dropping packets
Using the error name makes it less explicit in the packet trace than the error description when a packet is dropped. Example of the trace when the TTL is <=1: 01:03:17:015278: drop ip4-input: time_expired We should have "ip4 ttl <= 1" instead of "time_expired" Type: fix Change-Id: Ic9decf10d609cc938e39d0f449359e41c406267e Signed-off-by: Arthur de Kerhor <arthurdekerhor@gmail.com>
This commit is contained in:

committed by
Neale Ranns

parent
186b2156c0
commit
a9bfef73a7
@ -96,7 +96,7 @@ format_error_trace (u8 * s, va_list * va)
|
||||
i = counter_index (vm, vlib_error_get_code (&vm->node_main, e[0])) +
|
||||
error_node->error_heap_index;
|
||||
if (i != CLIB_U32_MAX)
|
||||
s = format (s, "%v: %s", error_node->name, em->counters_heap[i].name);
|
||||
s = format (s, "%v: %s", error_node->name, em->counters_heap[i].desc);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user