VPP-89: Fix an issue in format_vxlan_gpe_tunnel 49/1249/1
authorHongjun Ni <hongjun.ni@intel.com>
Wed, 25 May 2016 09:35:51 +0000 (17:35 +0800)
committerHongjun Ni <hongjun.ni@intel.com>
Wed, 25 May 2016 09:35:51 +0000 (17:35 +0800)
Change-Id: Ie81e2eb918e441ddaa9e7ab57e8bb0129f0f4f8f
Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
vnet/vnet/vxlan-gpe/vxlan_gpe.c

index bee6e7c..fdf1548 100644 (file)
@@ -30,12 +30,16 @@ u8 * format_vxlan_gpe_tunnel (u8 * s, va_list * args)
     {
     case VXLAN_GPE_PROTOCOL_IP4:
       s = format (s, "next-protocol ip4");
+      break;
     case VXLAN_GPE_PROTOCOL_IP6:
       s = format (s, "next-protocol ip6");
+      break;
     case VXLAN_GPE_PROTOCOL_ETHERNET:
       s = format (s, "next-protocol ethernet");
+      break;
     case VXLAN_GPE_PROTOCOL_NSH:
       s = format (s, "next-protocol nsh");
+      break;
     default:
       s = format (s, "next-protocol unknown %d", t->protocol);
     }