summaryrefslogtreecommitdiffstats
path: root/src/plugins/srtp/srtp.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-02-12 18:42:19 -0800
committerDave Barach <openvpp@barachs.net>2022-02-14 15:51:11 +0000
commitbe74504d2232ded435dc48d533d2c130595fea8c (patch)
treee7db2dd3361c49f2ead36a6357af36054ab7ba0c /src/plugins/srtp/srtp.c
parentdd8a272e9fda20e034e508485282be14a5880b35 (diff)
srtp: flag connections for no session layer lookup
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id78cdf742689a5cff356ac0aa3167af1c886b531
Diffstat (limited to 'src/plugins/srtp/srtp.c')
-rw-r--r--src/plugins/srtp/srtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/srtp/srtp.c b/src/plugins/srtp/srtp.c
index 715e2c9e77c..82d9b3d8f04 100644
--- a/src/plugins/srtp/srtp.c
+++ b/src/plugins/srtp/srtp.c
@@ -653,6 +653,7 @@ srtp_connect (transport_endpoint_cfg_t *tep)
ctx->parent_app_api_context = sep->opaque;
ctx->udp_is_ip4 = sep->is_ip4;
ctx->srtp_ctx_handle = ctx_index;
+ ctx->c_flags |= TRANSPORT_CONNECTION_F_NO_LOOKUP;
srtp_init_policy (ctx, (transport_endpt_cfg_srtp_t *) sep->ext_cfg->data);
@@ -749,6 +750,7 @@ srtp_start_listen (u32 app_listener_index, transport_endpoint_cfg_t *tep)
lctx->srtp_session_handle = udp_al_handle;
lctx->app_session_handle = listen_session_get_handle (app_listener);
lctx->udp_is_ip4 = sep->is_ip4;
+ lctx->c_flags |= TRANSPORT_CONNECTION_F_NO_LOOKUP;
srtp_init_policy (lctx, (transport_endpt_cfg_srtp_t *) sep->ext_cfg->data);