From 502785b65c40351f62e510a245ccee56084a07f4 Mon Sep 17 00:00:00 2001 From: Aloys Augustin Date: Tue, 9 Apr 2019 11:40:57 +0200 Subject: QUIC: Add multi-stream support to internal test apps Change-Id: Iab07697ef482529e62c11433cffa1f8f894e5bb7 Signed-off-by: Aloys Augustin Signed-off-by: Nathan Skrzypczak --- src/vnet/session/application_interface.c | 8 ++++++++ src/vnet/session/application_interface.h | 1 + src/vnet/session/session_types.h | 1 + 3 files changed, 10 insertions(+) (limited to 'src/vnet/session') diff --git a/src/vnet/session/application_interface.c b/src/vnet/session/application_interface.c index ae00292d918..2bd3ceb2785 100644 --- a/src/vnet/session/application_interface.c +++ b/src/vnet/session/application_interface.c @@ -78,6 +78,14 @@ unformat_vnet_uri (unformat_input_t * input, va_list * args) sep->is_ip4 = 0; return 1; } + else if (unformat (input, "%U://session/%u", unformat_transport_proto, + &transport_proto, &sep->transport_opts)) + { + sep->transport_proto = transport_proto; + sep->is_ip4 = 1; + sep->ip.ip4.as_u32 = 1; /* ip need to be non zero in vnet */ + return 1; + } return 0; } diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h index b49744c0b29..f6091c51698 100644 --- a/src/vnet/session/application_interface.h +++ b/src/vnet/session/application_interface.h @@ -211,6 +211,7 @@ typedef enum session_fd_flag_ #undef _ } session_fd_flag_t; +int parse_uri (char *uri, session_endpoint_cfg_t * sep); int vnet_bind_uri (vnet_listen_args_t *); int vnet_unbind_uri (vnet_unlisten_args_t * a); int vnet_connect_uri (vnet_connect_args_t * a); diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h index 32a13cf94f9..b3924398977 100644 --- a/src/vnet/session/session_types.h +++ b/src/vnet/session/session_types.h @@ -133,6 +133,7 @@ typedef enum session_flags_ { SESSION_F_RX_EVT = 1, SESSION_F_PROXY = (1 << 1), + SESSION_F_QUIC_STREAM = (1 << 2), } session_flags_t; typedef struct session_ -- cgit 1.2.3-korg