From ef71ef0ac31895a66c678f84533c8699e4b0328d Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Mon, 25 Mar 2019 10:20:56 +0100 Subject: Fix unformat proto UDPC / UDP conflict Change-Id: I9161959536c37f6f730650c9c0058a41af8e7001 Signed-off-by: Nathan Skrzypczak --- src/vnet/session/transport.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c index ddeb6d4b621..3f8a4c3b11e 100644 --- a/src/vnet/session/transport.c +++ b/src/vnet/session/transport.c @@ -158,6 +158,10 @@ unformat_transport_proto (unformat_input_t * input, va_list * args) *proto = TRANSPORT_PROTO_TCP; else if (unformat (input, "TCP")) *proto = TRANSPORT_PROTO_TCP; + else if (unformat (input, "udpc")) + *proto = TRANSPORT_PROTO_UDPC; + else if (unformat (input, "UDPC")) + *proto = TRANSPORT_PROTO_UDPC; else if (unformat (input, "udp")) *proto = TRANSPORT_PROTO_UDP; else if (unformat (input, "UDP")) @@ -170,10 +174,6 @@ unformat_transport_proto (unformat_input_t * input, va_list * args) *proto = TRANSPORT_PROTO_TLS; else if (unformat (input, "TLS")) *proto = TRANSPORT_PROTO_TLS; - else if (unformat (input, "udpc")) - *proto = TRANSPORT_PROTO_UDPC; - else if (unformat (input, "UDPC")) - *proto = TRANSPORT_PROTO_UDPC; else return 0; return 1; -- cgit 1.2.3-korg