vnet: fix a typo in vnet/buffer.c 90/9690/1
authorSteven <sluong@cisco.com>
Fri, 1 Dec 2017 14:58:56 +0000 (06:58 -0800)
committerSteven <sluong@cisco.com>
Fri, 1 Dec 2017 15:00:18 +0000 (07:00 -0800)
vnet_buffer->l3_hdr_offset should be displayed as l3-hdr-offset,
not l2-hdr-offset.

Change-Id: Ib8ec9d17a1b4167a2204002023ba2260e8ba36c4
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/buffer.c

index 78b32ea..38bda8c 100644 (file)
@@ -33,7 +33,7 @@ format_vnet_buffer (u8 * s, va_list * args)
     a = format (a, "l2-hdr-offset %d ", vnet_buffer (b)->l2_hdr_offset);
 
   if (b->flags & VNET_BUFFER_F_L3_HDR_OFFSET_VALID)
-    a = format (a, "l2-hdr-offset %d ", vnet_buffer (b)->l3_hdr_offset);
+    a = format (a, "l3-hdr-offset %d ", vnet_buffer (b)->l3_hdr_offset);
 
   if (b->flags & VNET_BUFFER_F_L4_HDR_OFFSET_VALID)
     a = format (a, "l4-hdr-offset %d ", vnet_buffer (b)->l4_hdr_offset);