From 3ca663e743dda703e76d8493a0c5cf13d7004c63 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 15 May 2020 21:23:58 +0000 Subject: vcl: remove udpc transport Type: refactor Signed-off-by: Florin Coras Change-Id: I145ff3301f168973c4f7f32c337bbcac47900705 --- src/vcl/vppcom.c | 4 ---- src/vcl/vppcom.h | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 4fc8bfce581..173b7fdd556 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -1556,10 +1556,6 @@ vppcom_unformat_proto (uint8_t * proto, char *proto_str) *proto = VPPCOM_PROTO_UDP; else if (!strcmp (proto_str, "udp")) *proto = VPPCOM_PROTO_UDP; - else if (!strcmp (proto_str, "UDPC")) - *proto = VPPCOM_PROTO_UDPC; - else if (!strcmp (proto_str, "udpc")) - *proto = VPPCOM_PROTO_UDPC; else if (!strcmp (proto_str, "TLS")) *proto = VPPCOM_PROTO_TLS; else if (!strcmp (proto_str, "tls")) diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index 902e9ea5d47..e2e0ae7d4bf 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -51,7 +51,6 @@ typedef enum VPPCOM_PROTO_UDP, VPPCOM_PROTO_NONE, VPPCOM_PROTO_TLS, - VPPCOM_PROTO_UDPC, VPPCOM_PROTO_QUIC, } vppcom_proto_t; @@ -71,9 +70,6 @@ vppcom_proto_str (vppcom_proto_t proto) case VPPCOM_PROTO_TLS: proto_str = "TLS"; break; - case VPPCOM_PROTO_UDPC: - proto_str = "UDPC"; - break; case VPPCOM_PROTO_QUIC: proto_str = "QUIC"; break; @@ -87,7 +83,7 @@ vppcom_proto_str (vppcom_proto_t proto) static inline int vcl_proto_is_dgram (uint8_t proto) { - return proto == VPPCOM_PROTO_UDP || proto == VPPCOM_PROTO_UDPC; + return proto == VPPCOM_PROTO_UDP; } typedef enum -- cgit 1.2.3-korg