aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2016-05-24 02:54:10 +0800
committerHongjun Ni <hongjun.ni@intel.com>2016-05-24 02:54:10 +0800
commit4a71314e0bee9f0fc236190a2a6df957adef67f6 (patch)
tree3fa4d2ce1204251f39f1d6fa6748194ee63af108 /vnet
parentb4d8927ac3426749c30c4d67e06b9e288bf5715a (diff)
Fix an issue in format_vxlan_gpe_tunnel
Change-Id: Ib283c75505b787f715e34f5b325dda8a6c2fa125 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/vxlan-gpe/vxlan_gpe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/vnet/vnet/vxlan-gpe/vxlan_gpe.c b/vnet/vnet/vxlan-gpe/vxlan_gpe.c
index 76cba0537c9..13eda440ed1 100644
--- a/vnet/vnet/vxlan-gpe/vxlan_gpe.c
+++ b/vnet/vnet/vxlan-gpe/vxlan_gpe.c
@@ -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);
}