Increase the trace bufffer size 88/888/2
authorChris Luke <chrisy@flirble.org>
Tue, 26 Apr 2016 14:55:52 +0000 (10:55 -0400)
committerJohn Lo <loj@cisco.com>
Wed, 27 Apr 2016 22:28:50 +0000 (22:28 +0000)
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>
vnet/vnet/interface_output.c
vnet/vnet/ip/ip6_forward.c

index f19b915..a8dd451 100644 (file)
@@ -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)
index d001ebb..2bd9efd 100644 (file)
@@ -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)