From 1c9f6ce744af84a2be3a2cd9d1e8298f358da7e6 Mon Sep 17 00:00:00 2001 From: Chris Luke Date: Tue, 26 Apr 2016 10:55:52 -0400 Subject: [PATCH] Increase the trace bufffer size In some cases, the packet header size with IPv6 and a tunnel can overflow the buffer used for packet tracing. This patch increases this buffer a little to avoid truncated header information in the trace. Change-Id: Ib800e3b908ebe7e80bae4428a94541a803b40b8c Signed-off-by: Chris Luke --- vnet/vnet/interface_output.c | 2 +- vnet/vnet/ip/ip6_forward.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vnet/vnet/interface_output.c b/vnet/vnet/interface_output.c index f19b9152da7..a8dd451fe82 100644 --- a/vnet/vnet/interface_output.c +++ b/vnet/vnet/interface_output.c @@ -41,7 +41,7 @@ typedef struct { u32 sw_if_index; - u8 data[64 - sizeof (u32)]; + u8 data[128 - sizeof (u32)]; } interface_output_trace_t; u8 * format_vnet_interface_output_trace (u8 * s, va_list * va) diff --git a/vnet/vnet/ip/ip6_forward.c b/vnet/vnet/ip/ip6_forward.c index d001ebb25a8..2bd9efd630e 100644 --- a/vnet/vnet/ip/ip6_forward.c +++ b/vnet/vnet/ip/ip6_forward.c @@ -1222,7 +1222,7 @@ typedef struct { u32 fib_index; /* Packet data, possibly *after* rewrite. */ - u8 packet_data[64 - 1*sizeof(u32)]; + u8 packet_data[128 - 1*sizeof(u32)]; } ip6_forward_next_trace_t; static u8 * format_ip6_forward_next_trace (u8 * s, va_list * args) -- 2.16.6