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 <chrisy@flirble.org>
diff --git a/vnet/vnet/interface_output.c b/vnet/vnet/interface_output.c
index f19b915..a8dd451 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 d001ebb..2bd9efd 100644
--- a/vnet/vnet/ip/ip6_forward.c
+++ b/vnet/vnet/ip/ip6_forward.c
@@ -1222,7 +1222,7 @@
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)