From ba65ca496af5766932a762bb99a758dbfcb580ec Mon Sep 17 00:00:00 2001 From: Nathan Skrzypczak Date: Thu, 16 May 2019 16:35:40 +0200 Subject: Add transport_opts to connect_sock bapi Needed by QUIC to distinguish Q/Ssessions Change-Id: Idcc9e46f86f54a7d06ce6d870edec1766e95c82d Signed-off-by: Nathan Skrzypczak --- src/vcl/vcl_bapi.c | 1 + src/vcl/vcl_private.h | 1 + 2 files changed, 2 insertions(+) (limited to 'src/vcl') diff --git a/src/vcl/vcl_bapi.c b/src/vcl/vcl_bapi.c index b28398101b3..3ccac4740fc 100644 --- a/src/vcl/vcl_bapi.c +++ b/src/vcl/vcl_bapi.c @@ -509,6 +509,7 @@ vppcom_send_connect_sock (vcl_session_t * session) cmp->context = session->session_index; cmp->wrk_index = wrk->vpp_wrk_index; cmp->is_ip4 = session->transport.is_ip4; + cmp->transport_opts = session->transport_opts; clib_memcpy_fast (cmp->ip, &session->transport.rmt_ip, sizeof (cmp->ip)); cmp->port = session->transport.rmt_port; cmp->proto = session->session_type; diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h index 8bafa5f74b4..14f461d9b56 100644 --- a/src/vcl/vcl_private.h +++ b/src/vcl/vcl_private.h @@ -170,6 +170,7 @@ typedef struct u8 is_vep_session; u8 has_rx_evt; u32 attr; + u64 transport_opts; vppcom_epoll_t vep; int libc_epfd; svm_msg_q_t *our_evt_q; -- cgit 1.2.3-korg