From 0b65621d41619e242b136e78fecfb325c90ae0bc Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 13 Jan 2022 11:59:44 -0800 Subject: http: add http protocol plugin Basic HTTP/1.1 server side implementation. Type: feature Signed-off-by: Florin Coras Change-Id: I06bddaf7f11e28db802b4cd7ef8160c78cb019b6 --- src/vnet/session/session.c | 2 +- src/vnet/session/transport_types.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/vnet') diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c index ffe29f9a293..77259ad76d3 100644 --- a/src/vnet/session/session.c +++ b/src/vnet/session/session.c @@ -2000,7 +2000,7 @@ session_main_init (vlib_main_t * vm) smm->poll_main = 0; smm->use_private_rx_mqs = 0; smm->no_adaptive = 0; - smm->last_transport_proto_type = TRANSPORT_PROTO_SRTP; + smm->last_transport_proto_type = TRANSPORT_PROTO_HTTP; return 0; } diff --git a/src/vnet/session/transport_types.h b/src/vnet/session/transport_types.h index 188c21ad9d5..adf5e59e6c0 100644 --- a/src/vnet/session/transport_types.h +++ b/src/vnet/session/transport_types.h @@ -21,10 +21,8 @@ #include #include - #define TRANSPORT_MAX_HDRS_LEN 140 /* Max number of bytes for headers */ - typedef enum transport_dequeue_type_ { TRANSPORT_TX_PEEK, /**< reliable transport protos */ @@ -166,7 +164,8 @@ STATIC_ASSERT (sizeof (transport_connection_t) <= 128, _ (TLS, "tls", "J") \ _ (QUIC, "quic", "Q") \ _ (DTLS, "dtls", "D") \ - _ (SRTP, "srtp", "R") + _ (SRTP, "srtp", "R") \ + _ (HTTP, "http", "H") typedef enum _transport_proto { -- cgit 1.2.3-korg