aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorAritra Basu <aritrbas@cisco.com>2024-08-28 14:02:34 -0700
committerFlorin Coras <florin.coras@gmail.com>2024-09-17 15:59:00 +0000
commit70d2a08e7efa0ecb255f2174e6a57b6511016059 (patch)
tree528cfdba2d063965ff33081e40d3a0e32ddf6a35 /src/vcl
parent0acb398d6d13b03514bcda72a7b52ece28932b1f (diff)
vcl: add http support to vcl_test_protos
Type: improvement Change-Id: Ibb493f1d7713d0e10b8bd1d5ff17b89967b53b8a Signed-off-by: Aritra Basu <aritrbas@cisco.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vppcom.c7
-rw-r--r--src/vcl/vppcom.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 5408fb79186..2ebb1d8e5b6 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -1754,6 +1754,10 @@ vppcom_unformat_proto (uint8_t * proto, char *proto_str)
*proto = VPPCOM_PROTO_SRTP;
else if (!strcmp (proto_str, "srtp"))
*proto = VPPCOM_PROTO_SRTP;
+ else if (!strcmp (proto_str, "HTTP"))
+ *proto = VPPCOM_PROTO_HTTP;
+ else if (!strcmp (proto_str, "http"))
+ *proto = VPPCOM_PROTO_HTTP;
else
return 1;
return 0;
@@ -4708,6 +4712,9 @@ vppcom_proto_str (vppcom_proto_t proto)
case VPPCOM_PROTO_SRTP:
proto_str = "SRTP";
break;
+ case VPPCOM_PROTO_HTTP:
+ proto_str = "HTTP";
+ break;
default:
proto_str = "UNKNOWN";
break;
diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h
index 3de2934adc1..164dc376ad8 100644
--- a/src/vcl/vppcom.h
+++ b/src/vcl/vppcom.h
@@ -58,6 +58,7 @@ typedef enum vppcom_proto_
VPPCOM_PROTO_QUIC,
VPPCOM_PROTO_DTLS,
VPPCOM_PROTO_SRTP,
+ VPPCOM_PROTO_HTTP,
} vppcom_proto_t;
typedef enum