aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorChris Luke <chrisy@flirble.org>2016-04-26 10:55:52 -0400
committerJohn Lo <loj@cisco.com>2016-04-27 22:28:50 +0000
commit1c9f6ce744af84a2be3a2cd9d1e8298f358da7e6 (patch)
treef1fbee527cc09cf5096af14ff82c4a2cb0fcfcf0 /vnet
parentacc22d7c45f3838fde53e759fcc44117e2668f26 (diff)
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>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/interface_output.c2
-rw-r--r--vnet/vnet/ip/ip6_forward.c2
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)