summaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>2019-05-16 16:35:40 +0200
committerFlorin Coras <florin.coras@gmail.com>2019-05-16 19:08:51 +0000
commitba65ca496af5766932a762bb99a758dbfcb580ec (patch)
tree40d10f3c77e23897d256c95202bc4bcbdf35be60 /src/vcl
parent8a6e1b190c63cc596aed33f84b5989b64d276423 (diff)
Add transport_opts to connect_sock bapi
Needed by QUIC to distinguish Q/Ssessions Change-Id: Idcc9e46f86f54a7d06ce6d870edec1766e95c82d Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vcl_bapi.c1
-rw-r--r--src/vcl/vcl_private.h1
2 files changed, 2 insertions, 0 deletions
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;