diff options
author | Florin Coras <fcoras@cisco.com> | 2020-03-27 15:06:07 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-03-30 20:34:30 +0000 |
commit | 87b7e3df2b6f0335424c338ee7d61d426ef45904 (patch) | |
tree | a9a3a568abd8575bfaae21357eba8d5aa833e97f /src/plugins/quic/quic.c | |
parent | 102dd1cfa792f3e70679463df141fe21fc67a8ea (diff) |
session udp: flag for connected udp
Type: improvement
This can be used as alternative to udpc
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ic3f7efe6728b25d4a8a0b61ddb36de66b4672c4f
Diffstat (limited to 'src/plugins/quic/quic.c')
-rw-r--r-- | src/plugins/quic/quic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index 3991656cefa..eeea8ab6f5c 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -1312,7 +1312,7 @@ quic_connect_connection (session_endpoint_cfg_t * sep) vec_terminate_c_string (ctx->srv_hostname); clib_memcpy (&cargs->sep, sep, sizeof (session_endpoint_cfg_t)); - cargs->sep.transport_proto = TRANSPORT_PROTO_UDPC; + cargs->sep.transport_proto = TRANSPORT_PROTO_UDP; cargs->app_index = qm->app_index; cargs->api_context = ctx_index; @@ -1320,6 +1320,7 @@ quic_connect_connection (session_endpoint_cfg_t * sep) app = application_get (app_wrk->app_index); ctx->parent_app_id = app_wrk->app_index; cargs->sep_ext.ns_index = app->ns_index; + cargs->sep_ext.flags = TRANSPORT_CFG_F_CONNECTED; ctx->crypto_engine = sep->crypto_engine; ctx->ckpair_index = sep->ckpair_index; @@ -1427,7 +1428,8 @@ quic_start_listen (u32 quic_listen_session_index, transport_endpoint_t * tep) args->app_index = qm->app_index; args->sep_ext = *sep; args->sep_ext.ns_index = app->ns_index; - args->sep_ext.transport_proto = TRANSPORT_PROTO_UDPC; + args->sep_ext.transport_proto = TRANSPORT_PROTO_UDP; + args->sep_ext.transport_flags = TRANSPORT_CFG_F_CONNECTED; if ((rv = vnet_listen (args))) return rv; |