From: Nathan Skrzypczak Date: Tue, 16 Jul 2019 08:58:58 +0000 (+0200) Subject: quic: Add back stream connect condition X-Git-Tag: v20.01-rc0~162 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=f9a46854ac99301b97a9e1843e2153578a930a98 quic: Add back stream connect condition Type: fix This is needed for VCL patch in the case the Qsession handle we connect to is 0. A better way to do this would be to add a u16 header to the transport_opts, as session_handles are : But this requires modifying all clients. Change-Id: If171bcf982eba3bd705b586c9fd4a6c2ad0e114b Signed-off-by: Nathan Skrzypczak --- diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c index 6c1a3c37bd5..39e460e1ac8 100644 --- a/src/plugins/quic/quic.c +++ b/src/plugins/quic/quic.c @@ -1495,7 +1495,7 @@ quic_connect (transport_endpoint_cfg_t * tep) QUIC_DBG (2, "Called quic_connect"); session_endpoint_cfg_t *sep = (session_endpoint_cfg_t *) tep; sep = (session_endpoint_cfg_t *) tep; - if (sep->transport_opts) + if (sep->port == 0) /* TODO add mask on transport_opts */ return quic_connect_new_stream (sep); else return quic_connect_new_connection (sep);