diff options
author | Nathan Skrzypczak <nathan.skrzypczak@gmail.com> | 2019-03-25 10:20:56 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-25 11:47:09 +0000 |
commit | ef71ef0ac31895a66c678f84533c8699e4b0328d (patch) | |
tree | a9a994f82d2ebbd5716c57d5a1158fcfa87bb536 /src/vnet/session | |
parent | 592c0b588c9f399201a8650b7099751177bdefa9 (diff) |
Fix unformat proto UDPC / UDP conflict
Change-Id: I9161959536c37f6f730650c9c0058a41af8e7001
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/transport.c | 8 |
1 files 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; |